Re: ESL - where to put some routines

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu