Re: A simple interpreter



Pascal Bourguignon wrote:
> Then you don't know C, where functions must be prefixed by &:
>
> #include <math.h>
> typedef double(*fun)(double);
> fun f = &sin;
> int main(void){
> printf("%f\n",f(1.0));
> return(0);}

Very true - should have said "functional language". Did Lisp always have
closures?

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com
.



Relevant Pages

  • Re: JOGL
    ... target market with advertising? ... Dr Jon D Harrop, Flying Frog Consultancy ...
    (comp.lang.java.programmer)
  • Re: set intersection -> true/false
    ... languages with pattern matching much easier to use than C++. ... Dr Jon D Harrop, Flying Frog Consultancy ...
    (comp.programming)
  • Re: shootout: implementing an interpreter for a simple procedural language Minim
    ... You can do that by writing a static type checker... ... Dr Jon D Harrop, Flying Frog Consultancy ...
    (comp.lang.functional)
  • Re: Encapsulation
    ... access to the private members of another class. ... Dr Jon D Harrop, Flying Frog Consultancyhttp://www.ffconsultancy.com/products/?u ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: lazyness
    ... Haskell implementation you happen to choose? ... Dr Jon D Harrop, Flying Frog Consultancy Ltd. ...
    (comp.lang.functional)