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

sub LOW_PRE_PI {3.141}
and I dont see where prototypes come into play. Am I missing something?

Yves / DeMerphq
Have you registered your Name Space?