Re: [racket] Sending a method as a symbol

2011-11-16 Thread nicolas.o...@gmail.com
On Tue, Nov 15, 2011 at 8:14 PM, Grant Rettke wrote: > > That is like eval but for talking to objects? > More like looking up an interned symbol from a namespace. (A very limited form of eval...) Best, Nicolas. _ For list-related administrative

Re: [racket] Sending a method as a symbol

2011-11-15 Thread Grant Rettke
On Tue, Nov 15, 2011 at 7:32 PM, Shriram Krishnamurthi wrote: > Right.  In other words, Racket would become a true scripting language. <-; Then it must get added :). _ For list-related administrative tasks: http://lists.racket-lang.org/listinf

Re: [racket] Sending a method as a symbol

2011-11-15 Thread Shriram Krishnamurthi
Right. In other words, Racket would become a true scripting language. <-; On Tue, Nov 15, 2011 at 3:14 PM, Grant Rettke wrote: > On Mon, Nov 14, 2011 at 8:32 AM, Matthew Flatt wrote: >> At Sun, 13 Nov 2011 21:00:55 +, "nicolas.o...@gmail.com" wrote: >>> Is there a function to send to a clas

Re: [racket] Sending a method as a symbol

2011-11-15 Thread Grant Rettke
On Mon, Nov 14, 2011 at 8:32 AM, Matthew Flatt wrote: > At Sun, 13 Nov 2011 21:00:55 +, "nicolas.o...@gmail.com" wrote: >> Is there a function to send to a class with a dynamic symbol instead of a >> static one? >> >> As in (send 'method-name) > > I'll look into this more, but you can wri

Re: [racket] Sending a method as a symbol

2011-11-14 Thread Matthew Flatt
At Sun, 13 Nov 2011 21:00:55 +, "nicolas.o...@gmail.com" wrote: > Is there a function to send to a class with a dynamic symbol instead of a > static one? > > As in (send 'method-name) I'll look into this more, but you can write (send-generic o (make-generic (object-interface o) 'method

[racket] Sending a method as a symbol

2011-11-13 Thread nicolas.o...@gmail.com
Dear all, Is there a function to send to a class with a dynamic symbol instead of a static one? As in (send 'method-name) send seems to reduce to find-method/who, but this function is not exported. Best regards, Nicolas. _ For list-related