Re: Euphoria Standard Library on UBoard
- Posted by Jason Gade <jaygade at gmail.com> Jul 25, 2005
- 525 views
Tommy Carlier wrote: > > > posted by: Tommy Carlier <tommy.carlier at telenet.be> > Here are some more suggestions I have for ESL: > - the constants TRUE and FALSE > - bitwise functions > - a mechanism to ignore return-values of functions. Some options: > -> a global variable VOID: VOID = functionToIgnore(...) (like Win32Lib) > -> a procedure ignore that does nothing: ignore(functionToIgnore()) (like > Win4Eu) > - an enumeration-mechanism: here's how it was done in Win4Eu: > }}} <eucode> > constant DAY_OF_WEEK = enum() > constant MONDAY = next(DAY_OF_WEEK), > TUESDAY = next(DAY_OF_WEEK), > WEDNESDAY = next(DAY_OF_WEEK), > THURSDAY = next(DAY_OF_WEEK), > FRIDAY = next(DAY_OF_WEEK), > SATURDAY = next(DAY_OF_WEEK), > SUNDAY = next(DAY_OF_WEEK) > </eucode> {{{ > - advanced C/API-interface functionality (WIN32/LINUX) 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. > > - > The Internet combines the excitement of typing > with the reliability of anonymous hearsay. > > tommy online: http://users.telenet.be/tommycarlier > tommy.blog: http://tommycarlier.blogspot.com > > > > -- ============================== Too many freaks, not enough circuses. j.