Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Curt Hagenlocher
From: "Jonathan Ross" <[EMAIL PROTECTED]> Or, this being JIT and all, maybe method A was never compiled until I called method B, but I have no idea how any direct calls could be made if you had to check all the .net code to see if it was compiled yet before calling it. Yes. Any function refer

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Jonathan Ross
genlocher" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 03, 2005 12:22 PM Subject: Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code From: "Jonathan Ross" <[EMAIL PROTECTED]> By any chance, do you know for sure if the call I'm making

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Jonathan Ross
> To: Sent: Wednesday, August 03, 2005 12:22 PM Subject: Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code From: "Jonathan Ross" <[EMAIL PROTECTED]> By any chance, do you know for sure if the call I'm making from Method B to Method A is a direct c

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Curt Hagenlocher
From: "Jonathan Ross" <[EMAIL PROTECTED]> By any chance, do you know for sure if the call I'm making from Method B to Method A is a direct call instruction or if it's a dynamic method delegate? I'm betting it's a straight up instruction call, which has me frothing with anticipation. Well, you'

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Jonathan Ross
truction call, which has me frothing with anticipation. - Original Message - From: "Curt Hagenlocher" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 03, 2005 11:11 AM Subject: Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code From: "Jonathan Ross&

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-03 Thread Curt Hagenlocher
From: "Jonathan Ross" <[EMAIL PROTECTED]> Okay, for the last 4 hours I've been stuck on calling a dynamic method from another dynamic method. Following is my code, which errors out for some reason unknown to me. The error message "Common Language Runtime detected an invalid program." almost ce

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Jonathan Ross
oid write(string text) { Console.WriteLine(text); } } } -Jonathan - Original Message - From: "Jonathan Ross" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 02, 2005 7:07 PM Subject: Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code Thanks f

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Royal, Timothy
t: Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code I would recommend SharpDevelop but it is GPL which probably doesn't suit. Essential Edit from SyncFusion is a commercial product with Intellisense, syntax colouring etc. and I know for a fact that it is what is used in SnippetComp

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Jonathan Ross
Thanks for the help everyone. I've discovered dynamic methods, and I've successfully been able to call a function in my program using one. Now I just need to test calling one of my dynamic methods from another, but it looks like this won't be too hard. Unfortunately this is still all using emit, a

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread William Bartholomew
I would recommend SharpDevelop but it is GPL which probably doesn't suit. Essential Edit from SyncFusion is a commercial product with Intellisense, syntax colouring etc. and I know for a fact that it is what is used in SnippetCompiler (have a play with this and see if you like how the control works

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Royal, Timothy
This runs close to what I'm going to be embarking on in the next few weeks. I need to rewrite a tool that was written in wxPython, and allowed users to build "work steps" as python scripts and string them together into a execution plan (with scheduling, database updating, custom configurations, etc

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread William Bartholomew
Jonathan, You can do this with CodeDOM. CodeDOM allows you to compile to in-memory assemblies which you can load and execute and most importantly for your purposes CodeDOM won't validate that types/methods/etc. exist until compile time. So when you are writing the code for "A" you can refer to the

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Geoff Taylor
Hi there. Sounds difficult (and interesting!) If I were you, I'd have a look at Jscript .NET - it has some of the features you want. It won't do it all, but looking at the way it does things may give you some ideas. This post may help get things started: http://pluralsight.com/blogs/crai