Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Ian MacLean
That works. I'd rather specifiy the namespace at the class level though. Ian In that case I should check when I'm scanning for methods that they are all lowercase - or we can just map a lowercase name to the correct methodinfo object. So even if you define the method in code as void SomeFunc()

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Martin Aliger
> In that case I should check when I'm scanning for methods that they are > all lowercase - or we can just map a lowercase name to the correct > methodinfo object. So even if you define the method in code as > > void SomeFunc() > > it will be mapped to the nant custom function somefunc() and attem

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Ian MacLean
In that case I should check when I'm scanning for methods that they are all lowercase - or we can just map a lowercase name to the correct methodinfo object. So even if you define the method in code as void SomeFunc() it will be mapped to the nant custom function somefunc() and attempting to

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Jaroslaw Kowalski
> Do you think the functions need to be defined as static ? I was thinking > of making them public instance and passing a Project instance to the > containing objects constructor so that functions can have access to > various information inside the project - the same as tasks can now. It > might be

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Martin Aliger
> user to specify it. I'm allowing functions to be imported from the same > assemblies that are currently scanned for tasks ie those in the nant bin > dir. Then any extra libs can be added using somthing like the > task you describe below. Maybe could > override namespace defined with the attribu

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Ian MacLean
Jarek, What does your "custom function loading code" do? I presume that you want to load functions from external dlls and make them available to EE. thats correct. It scans assemblies looking for classes marked with a special attribute - then loads MethodInfo objects from those classes into a

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Jaroslaw Kowalski
-- Original Message - From: "Ian MacLean" <[EMAIL PROTECTED]> To: "Jaroslaw Kowalski" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 9:35 AM Subject: Re: [nant-dev] Fw: Expression evaluator changes > Awesome, thanks ! >

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Ian MacLean
Awesome, thanks ! Ian Jaroslaw Kowalski wrote: OK. Committed. Jarek - Original Message - From: "Ian MacLean" <[EMAIL PROTECTED]> To: "Jaroslaw Kowalski" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 9:23 AM Subject: R

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Jaroslaw Kowalski
OK. Committed. Jarek - Original Message - From: "Ian MacLean" <[EMAIL PROTECTED]> To: "Jaroslaw Kowalski" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 9:23 AM Subject: Re: [nant-dev] Fw: Expression evaluator changes

Re: [nant-dev] Fw: Expression evaluator changes

2003-12-08 Thread Ian MacLean
Could you just commit to the branch ? I'd like to merge these changes with my custom function loading code. Ian As my previous e-mail bounced because it was too big (41 KB > 40KB limit!) I'm resending this to the list without the patch. Again, I encourage everyone to download and try "test2" and