Seeing as noone else has answered, I'll point out the boot.lisp in
DotLisp as an example of dynamic code (Rich Hickey's original calls
delegates, and my modification also calls single method interfaces)
that answers the second and third questions.

DotLisp project
http://dotlisp.sourceforge.net/

My extensions:
http://www.ozemail.com/~markhurd/DotLispPatch.html

For the first question, I don't know, but I think your discussion
effectively answers it, as 'no'. (And I think I've also seen something
related suggesting that the answer is no. Specifically it related to
avoiding JIT errors when referenced assemblies are not available.)

Regards,
Mark Hurd, B.Sc.(Ma.)(Hons.)

P.S:Warning gmail.com headers often cause replies to me when they are
intended for the mailing list.

On 8/7/05, Jonathan Ross <[EMAIL PROTECTED]> wrote:
> I'm doing a project using DynamicMethods and have some questions. Note: I'm 
> not sure, but this may only be available in .NET 2.0.
> 
> #1 After I emit an instruction, is there any way for me to delete it or 
> otherwise modify it? 
> 
> #2 DynamicMethods are static, but I would like to use them as if they were 
> instance methods. Does anyone have a good, efficient suggestion on how to do 
> this?
> 
> #3 This may go along with #2, but how do I reference an external variable? 
> For example, from my dynamic method, how can I check the value of an integer 
> in my program without using a function call to my program? I want to 
> reference it directly.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to