Re: LAST DECLARED PROCS VISIBLE TO EARLY DECLARD PROCS

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

Carl R. White wrote:
> 
> ZNorQ wrote:
> 
> > Lame title, I know.. Spent quite some time, and came up with that..! Doh!
> > 
> > When we declare procedures and functions, the last procedures/functions
> > aren't visible to the early procedures/functions.
> > ie;
> > 
> > procedure firstproc()
> >   lastproc()
> > end procedure
> > 
> > procedure lastproc()
> > end procedure
> 
> You need routine_id():
> 
> integer lastproc_id
> 
> procedure firstproc()
>     call_proc(lastproc_id, {})
> end procedure
> 
> procedure lastproc()
> end procedure
> 
> lastproc_id = routine_id("lastproc")
> 
> Also see one of my old posts here: <a
> href="http://tinyurl.com/5y7y9">http://tinyurl.com/5y7y9</a>
> 
> Carl
> 
> -- 
> [ Carl R White == aka () = The Domain of Cyrek = ]
> [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]
> 
> 

Yeah, I found out just after I pressed the "send now" button on the
forum.. Typical me. Thanks anyway.

Kenneth / ZNorQ

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

Search



Quick Links

User menu

Not signed in.

Misc Menu