Re: LAST DECLARED PROCS VISIBLE TO EARLY DECLARD PROCS

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

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: http://tinyurl.com/5y7y9

Carl

-- 
[ Carl R White == aka () = The Domain of Cyrek = ]
[ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]

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

Search



Quick Links

User menu

Not signed in.

Misc Menu