Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-12 Thread %u
Well, 5155 is fairly simple. The bug report details four one line changes to Object.di and Object_.d. See http://d.puremagic.com/issues/show_bug.cgi?id=5155 Also, If that doesn't do the trick, please e-mail me as I would like to fix the root cause. (And let you test the library) Oops sorry, I

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-10 Thread Robert Jacques
On Sat, 09 Apr 2011 18:08:58 -0400, %u wfunct...@hotmail.com wrote: Sorry. It was late and I forgot to mention some things. A) My code is dependent on patch 5155, and B) I forgot about changes, etc, that I had to make to go from DMD 2.051 to DMD 2.052. I've uploaded my current working copy

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-09 Thread %u
Thanks for the link! I tried compiling the file, and I got these errors: variant.d(454): Warning: statement is not reachable variant.d(454): Warning: statement is not reachable variant.d(454): Warning: statement is not reachable variant.d(634): Warning: statement is not reachable variant.d(660):

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-09 Thread Robert Jacques
On Sat, 09 Apr 2011 04:07:11 -0400, %u wfunct...@hotmail.com wrote: Thanks for the link! I tried compiling the file, and I got these errors: variant.d(454): Warning: statement is not reachable variant.d(454): Warning: statement is not reachable variant.d(454): Warning: statement is not

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-09 Thread %u
Sorry. It was late and I forgot to mention some things. A) My code is dependent on patch 5155, and B) I forgot about changes, etc, that I had to make to go from DMD 2.051 to DMD 2.052. I've uploaded my current working copy and remade the docs. Let me know if you have any issues with this. (And

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-08 Thread %u
I've added reflection capabilities to an update to std.variant I'm working on. Overloads work. General functions work. (Although a few bugs with opCall and opDispatch prevents the ideal syntax: var.x(5) vs var.x = 5 and var.call(5) vs var(5), but I assume those will be eventually fixed). I've

UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-07 Thread %u
I was trying to write a Dynamic class for D, which uses opDispatch to allow for late binding, but I ran into a problem: While my class works well for regular methods inside a class, it fails to work for: (1) Template methods inside a class (2) Methods with overloads (3) Global methods that have

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-07 Thread Steven Schveighoffer
On Thu, 07 Apr 2011 14:20:53 -0400, %u wfunct...@hotmail.com wrote: I was trying to write a Dynamic class for D, which uses opDispatch to allow for late binding, but I ran into a problem: While my class works well for regular methods inside a class, it fails to work for: (1) Template methods

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-07 Thread %u
I tried a wrapper type using opDispatch in dcollections, but what I ran into is, opDispatch uses its called parameter types to decide the function parameter types, you have very little control over that. I basically ended up abandoning the use of opDispatch and implemented each covered function

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-07 Thread Caligo
What's UCFS?

Re: UCFS, Reflection/Metadata, Overload Resolution, Templates, and other issues

2011-04-07 Thread Robert Jacques
On Thu, 07 Apr 2011 14:20:53 -0400, %u wfunct...@hotmail.com wrote: I was trying to write a Dynamic class for D, which uses opDispatch to allow for late binding, but I ran into a problem: While my class works well for regular methods inside a class, it fails to work for: (1) Template methods