Inform: How to make a function optional?


Tue, 21 Nov 1995 17:30:10 -0500 (EST)

svanegmo@undergrad.math.uwaterloo.ca (Stephen van Egmond) writes:
>In article <199511201956.OAA11920@papaya.ucs.indiana.edu>,
>Sam Hulick <shulick@papaya.ucs.indiana.edu> wrote:
>>
>>Looking through the new manual, I figure I'd find something about #Stub,
>>but I didn't. How does it work? Why is it that when I do this:
>>
>>#Stub CreditRoutine 0;
>>
>>then I define CreditRoutine() later, it complains about it being
>>multiply defined?? What does the number mean after the routine name?
>
>Grepping through my text copy. :) I find the following:
[stuff]

I simply want CreditRoutine() to be optional. If it is defined, then
call it. if it's not defined, don't call it. How can I do this? I
figured #Stub was the answer to this. Do I just do an #IFDEF
CreditRoutine?

-- 
--- Sam Hulick ------------- shulick@indiana.edu ---------------------
Systems Consultant        | Homepage:
Indiana College Placement |    http://copper.ucs.indiana.edu/~shulick/
  and Assessment Center   | PGP public key available on request