Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.ruhr-uni-bochum.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!news.dfn.de!Germany.EU.net!howland.reston.ans.net!newsfeed.internetmci.com!swrinde!sdd.hp.com!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!news.cs.indiana.edu!shulick@kiwi.ucs.indiana.edu
From: "Sam Hulick" <shulick@kiwi.ucs.indiana.edu>
Subject: Inform: How to make a function optional?
Message-ID: <199511212230.RAA06824@kiwi.ucs.indiana.edu>
Organization: Vallen Software
References: <199511201956.OAA11920@papaya.ucs.indiana.edu> <DIDnC7.zn@undergrad.math.uwaterloo.ca>
Date: Tue, 21 Nov 1995 17:30:10 -0500 (EST)
Lines: 25

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
