Re: routine_id scope

new topic     » goto parent     » topic index » view thread      » older message » newer message
xecronix said...

I found some discussion on scope for routine_id but nothing that calls attention to Greg's trick.

It was in this thread: init.e - standard library candidate.

jimcbrown said...

However, routine_id() is unique in that, like repeat() or it(), routine_id() relies on scoping to interpret the value of its parameter. So, what should routine_id() do? Should it use the scope where the routine is called, or the scope where the routine is defined? This only applies to routine_id(), since no other routine cares about scope in the same way when it is called.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu