Re: Eval in Haskell

2003-06-02 Thread Lauri Alanko
[Moving to cafe, this is only barely Haskell-related.] On Sun, Jun 01, 2003 at 04:16:36PM -0700, [EMAIL PROTECTED] wrote: Eval of the kind let x = 1 in eval x is plainly an abomination. I agree, though not because of the optimization issues but rather as a matter of principle: a closed

Re: Eval in Haskell

2003-06-02 Thread Ashley Yakeley
In article [EMAIL PROTECTED], Lauri Alanko [EMAIL PROTECTED] wrote: Nevertheless, this abomination is supported even by some scheme implementations: guile (define local-environment (procedure-syntax (lambda (exp env) env))) guile (define (eval-where-x-bound exp) ... (let ((x 'foo))

Re: Is my question bad ?

2003-06-02 Thread Pablo Dejuan
Karl M Syring wrote: Antoine Utonium wrote on Sat, 31 May 2003 13:29:09 +0200: I recently asked you who knows how to link haskell-made code to C apps, or call haskell code from C code, or encapsulate, traduce, Haskell code in C code. I just want to use haskell when I need advanced

Re: Is my question bad ?

2003-06-02 Thread Antoine Utonium
Karl M Syring wrote: Antoine Utonium wrote on Sat, 31 May 2003 13:29:09 +0200: I recently asked you who knows how to link haskell-made code to C apps, or call haskell code from C code, or encapsulate, traduce, Haskell code in C code. I just want to use haskell when I need advanced algorithms,

Re: Eval in Haskell

2003-06-02 Thread Lauri Alanko
[We now have lost all pretence of topicality] On Sun, Jun 01, 2003 at 08:43:03PM -0700, Ashley Yakeley wrote: Guile seems to be a bit sloppy in general. I think it just keeps a dictionary of symbol bindings and passes it around at runtime. guile (eval '(define b 5)) guile b 5 This

Re: Is my question bad ?

2003-06-02 Thread Alastair Reid
On Saturday 31 May 2003 12:29 pm, Antoine Utonium wrote: I recently asked you who knows how to link haskell-made code to C apps, or call haskell code from C code, or encapsulate, traduce, Haskell code in C code. I just want to use haskell when I need advanced algorithms, C for I/O, and GUI

a readFile problem

2003-06-02 Thread Naudts, Guido
Hallo, I have the following problem: my program asks the user for a command, when the command is executed a new command is asked (this is no problem ; an example is in the HUgs distribution namely Main.hs in the Prolog example. However one of the commands is: read filename i.e. read a file and