Re: routine_id scope
- Posted by ghaberek (admin) Oct 20, 2015
- 1566 views
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