Re: Semi Automated Object wrapping

2009-08-13 Thread bearophile
Bill Baxter: > ret ~= "\t$ReturnType!(t).stringof splitFuncs(methodstr)[i](" > It would at least look a bit nicer than > ret ~= "\t"~ReturnType!(t).stringof ~" "~splitFuncs(methodstr)[i]~"("; > with all the ~" "~ everywhere. Currently you can do (I think it doesn't work well in D2 now): i

Re: Semi Automated Object wrapping

2009-08-13 Thread Rory McGuire
On Fri, 14 Aug 2009 00:16:39 +1000, Daniel Keep wrote: > Bill Baxter wrote: >> On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire >> wrote: >>> On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: >>> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire wrote: > Here is some code I wrote whic

Re: Semi Automated Object wrapping

2009-08-13 Thread Daniel Keep
Bill Baxter wrote: > On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire wrote: >> On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: >> >>> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire >>> wrote: Here is some code I wrote which enables wrapping a proxy around an object. I am using it f

Re: Semi Automated Object wrapping

2009-08-13 Thread Bill Baxter
On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire wrote: > On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: > >> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire >> wrote: >>> Here is some code I wrote which enables wrapping a proxy around an >>> object. I am using it for my serialization library.

Re: Semi Automated Object wrapping

2009-08-13 Thread Rory McGuire
On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: > On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire > wrote: >> Here is some code I wrote which enables wrapping a proxy around an >> object. I am using it for my serialization library. It works in >> D1(1.046) and D2 (2.031) >> >> Posting it here

Re: Semi Automated Object wrapping

2009-08-12 Thread Bill Baxter
On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire wrote: > Here is some code I wrote which enables wrapping a proxy around an object. > I am using it for my serialization library. It works in D1(1.046) and D2 > (2.031) > > Posting it here for reference by all before I add to much of the stuff > specifi

Semi Automated Object wrapping

2009-08-12 Thread Rory McGuire
Here is some code I wrote which enables wrapping a proxy around an object. I am using it for my serialization library. It works in D1(1.046) and D2 (2.031) Posting it here for reference by all before I add to much of the stuff specific to my use, should make it easier to follow. usage: new Proxy