Re: Euphoria Standard Library on UBoard
- Posted by Jason Gade <jaygade at yahoo.com> Jul 28, 2005
- 526 views
Juergen Luethje wrote: > > Jason Gade wrote: > > > Tommy Carlier wrote: > > > >> Here are some more suggestions I have for ESL: > > <snip> > > >> - an enumeration-mechanism: here's how it was done in Win4Eu: > > <snip> > > > I don't know if it can be avoided, but library functions probably should > > not keep state information; that is one thing I realized after > > advocating an error-handling mechanism. It is also something that I am > > considering in my foreach library which if it is not very simple would > > require the keeping of state information. > > > > If the ESL is to grow beyond the current Euphoria into a multi-threading > > version then keeping state information in library variables will be a > > last-resort mechanism because of race conditions and complications. > > If we follow the rule "library functions should not keep state information", > then we can't implement any 'enum()' function. Is this right or wrong? > > Regards, > Juergen > > I think that is right; I also think that it would be difficult to implement a string or structure library. At least the kinds of library that I am envisioning. I don't know if we should make the rule "library functions should not keep state information" but at least that it should be avoided when possible. ===================================== Too many freaks, not enough circuses. j.