Re: Find a multi-method/multi-sub by name and signature

2006-02-12 Thread Leopold Toetsch
Jonathan Worthington wrote: and I'm trying to find a sub/method by knowing the types but not having arguments that would be seen as that type (e.g. null won't ever be seen as a particular type). So I think this doesn't really help. Well, you could use the 'long names' of the multi subs direc

Re: Find a multi-method/multi-sub by name and signature

2006-02-12 Thread Jonathan Worthington
"Leopold Toetsch" <[EMAIL PROTECTED]> wrote: On Feb 12, 2006, at 2:27, Jonathan Worthington wrote: This problem would go away if I had a way of doing a find_global or findmethod but also specifying the types that make up the signature. The sequence of: set_args '(...)', ... f = find_n

Re: Find a multi-method/multi-sub by name and signature

2006-02-12 Thread Leopold Toetsch
On Feb 12, 2006, at 2:27, Jonathan Worthington wrote: This problem would go away if I had a way of doing a find_global or findmethod but also specifying the types that make up the signature. The sequence of: set_args '(...)', ... f = find_name 'func' should exactly do, what you need.

Find a multi-method/multi-sub by name and signature

2006-02-11 Thread Jonathan Worthington
Hi, The .NET translator ambles on and I can now translate a lot of stuff relating to the .NET object model. Recently I've been working on mapping .NET's static method overloading onto Parrot's MMD. With some evil tricks I got it to work - almost. The real issue is that .NET knows what meth