Re: Secret new routine_id() feature. (Attn: Rob)
- Posted by CoJaBo <CoJaBo_EUforum_Address at CJBN.net> Dec 09, 2004
- 572 views
Andy Serpa wrote: > > > I just noticed that in v2.5, routine_id() can now "see ahead" and give you > routine > numbers for functions occuring below in the code or in files including after > the current > one (if the routine is global). This new ability is not in the release notes, > and > the docs for routine_id() still say the routine must be "visible" to get the > routine > number. > > I assume this stems from the fact that all the code is now parsed in advance. > While > this is a welcome change, it begs the question: why not now allow full forward > referencing > and let us call routines defined below in the code directly? That would definatly help eliminate some of the messy, hard to read code I've had to right as a fix for this limitation. > > [ Rob: if you actually did not know of this new ability, which I suspect since > it is > not mentioned anywhere, please leave it that way. ] >