evaluating math w/o recompile

Henry Spencer henry at utzoo.uucp
Sat Sep 16 01:43:36 AEST 1989


In article <72603 at yale-celray.yale.UUCP> zador-anthony at CS.YALE.EDU (anthony zador) writes:
>I would like to be able to specify the form of the function f
>at *run time* (no recompiles). That is, i would like 
>to place a line of math
>in some file and have the program read it in and evaluate it.

You can't.  There is no way that line of math can be *executed* without
compiling it (in a very broad sense of the word), so trying to do it with
no recompiles is futile.  Either you invoke the C compiler, or you write
a mini-compiler as part of your program.  *Something* has to turn the math
notation into an executable/interpretable representation of some kind.
-- 
V7 /bin/mail source: 554 lines.|     Henry Spencer at U of Toronto Zoology
1989 X.400 specs: 2200+ pages. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list