Re: ESL - where to put some routines
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jul 25, 2005
- 511 views
D. Newhall wrote: <snip> > Also, is writting a routine_no and file_no type even really possible? > I mentioned to Juergen that both are simply positive integers that are > allocated when routine_id() or open() is called; so to know what > numbers are valid we'd have to keep track of the number of times > routine_id() and open() are called, correct? This goes far above making > a library into making what's essentially a preprocessor or we could > redefine routine_id() and open() but I really don't think we want to do > that... Pete (Lomax) had written: | global type rtnid(object r) | return not equal(r,-1) | end type | | ... | | PS the type above should be part of the new standard library. In %EUDIR%\demo\langwar\sched.e it reads: | type valid_routine_id(integer id) | return id >= 0 and id <= 1000 | end type I am thinking of something along these lines. Regards, Juergen