Re: Suggested enhancement
- Posted by Cameron Kaiser <spectre at ODIN.EGATE.NET> Apr 18, 1997
- 1125 views
> It was also done in the BBC Microcomputer's BASIC. The command EVAL() let > you enter a string comprising any mathematical function available on the > computer, (including established variables) and returned the result. > > e.g. > A = 17: B = 42: C = EVAL("SQR(B - A)") > > and C would be set to 5. <nothing-to-do-with-euphoria> LISP does that too, lest anyone forget, as well as some variants of LPC, the programming language that powers some kinds of MUDs and the Roxen httpd. The Amylaar version specifically has a structure called a "closure" that can be written up by the routine on the fly. And, in the totally obscure category, an old COMPUTE!'s Gazette utility called "Smart VAL" lets the VAL() function on Commodore 64 BASIC 2.0 act identically to the example above. </nothing-to-do-with-euphoria> Cameron Kaiser http://www.sserv.com/ spectre at sserv.com