Re: Suggested enhancement
- Posted by "Carl R. White" <C.R.White at COMP.BRAD.AC.UK> Apr 18, 1997
- 1272 views
On Thu, 16 Jan 1997, John DeHope wrote: > JEFF ZEITLIN wrote: > > Allow a procedure/function call "execute" (or something along > > those lines) which takes a sequence of characters forming > > valid Euphoria statements, and returns whatever executing > > those statements results in - or nothing at all, if there's no > > return value in the statements. > > I have used a program language/environment called "MUMPS" which provided > this functionality. It allows your code to write code, a really > interesting feature, eh? I just thought I'd let everybody know that this > can be/has been done before. 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. It looks like I'm gonna be around for a while..., :) Carl -- Carl R White | e-mail...: crwhite at comp.brad.ac.uk | finger...: crwhite at dcsun1.comp.brad.ac.uk | web......: http://www.student.comp.brad.ac.uk/~crwhite