in reply to (tye)Re: When to use Prototypes?
in thread When to use Prototypes?
Now I only use prototypes for making compile-time constants and to emulate map's and grep's ability to take bare blocks as code references (and this latter use is quite rare and really only gives a very minor benefit of not having to see "sub" in front of each block).
Yeah the bare block trick was what I meant by 'unusual situations' :-) A quick question (which I could answer myself after a bit of testing, but it seems like a point that should be shared) doesn't it also coerce a statement into a block as well?
My second question is how do prototypes help you with compile time constants? I assume you are talking about something like
and I dont see where prototypes come into play. Am I missing something?sub LOW_PRE_PI {3.141}
Yves / DeMerphq
--
Have you registered your Name Space?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (tye)Re: When to use Prototypes?
by danger (Priest) on Nov 09, 2001 at 23:15 UTC | |
by tye (Sage) on Nov 09, 2001 at 23:59 UTC | |
Re: Re: (tye)Re: When to use Prototypes?
by blakem (Monsignor) on Nov 10, 2001 at 01:21 UTC |
In Section
Meditations