Next: eval in procedure-environment
Hello again!
So far it works, thanx a lot!
And now the next problem: How do I create an expression, that
executes such a lambda-expression giving it some parameters?
Eg:
(define b (lambda () (lambda (x) (+ x 1))))
defines a function that returns a function, which needs one parameter (x).
A call of it would look like:
((b) 0)
| |
| -- parameter
------call of b gives back function
If I create an expression in the proposed way:
(define b2 '(lambda () (lambda (x) (+ x 1))))
Now I don't see a way to give it the requested parameter, using
eval... Damn!
Any suggestions? Is there another way to create objects that
have their own data and to which one can add (and maybe delete)
functions after creation, which access the data? The word
"meta object protocol" comes to my mind... (????) or maybe
something like the "packages"-thing from the good ole
Abelson/Sussman could be useful? Best would be something portable.
_ - __o
----- Und weg... ----- _- _`\<,_
- (_)/ (_)
-------------------------------------------------------------------------------
Schabracke sucht desillusionierten | Olaf Gellert
Trinker | gellert_at_informatik.uni-hamburg.de
(Kontaktanzeige, Szene 1/97) | Universitaet Hamburg, FB Informatik
| www.geocities.com/TheTropics/1263
-------------------------------------------------------------------------------
Received on Wed Mar 12 1997 - 10:07:27 CET
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST