opDispatch or equivalent at static context

2010-01-21 Thread Chris Nicholson-Sauls
(Apologies ahead of time if I've overlooked something.) How possible could it be to have opDispatch or an equivalent feature (opStaticDispatch?) available for static forwarding? Use-case: I'm envisioning an ORM library, where one could do things like: Player.findFirstByName( Bob )

Re: opDispatch or equivalent at static context

2010-01-21 Thread Chris Nicholson-Sauls
Lars T. Kyllingstad wrote: Chris Nicholson-Sauls wrote: (Apologies ahead of time if I've overlooked something.) How possible could it be to have opDispatch or an equivalent feature (opStaticDispatch?) available for static forwarding? Use-case: I'm envisioning an ORM library, where one could

Re: opDispatch or equivalent at static context

2010-01-21 Thread Lutger
On 01/21/2010 09:28 AM, Chris Nicholson-Sauls wrote: Lars T. Kyllingstad wrote: Chris Nicholson-Sauls wrote: (Apologies ahead of time if I've overlooked something.) How possible could it be to have opDispatch or an equivalent feature (opStaticDispatch?) available for static forwarding?

Re: opDispatch or equivalent at static context

2010-01-21 Thread Ali Çehreli
Chris Nicholson-Sauls wrote: Isn't that what opDispatch does now? -Lars Not as a static member, to my knowledge. At the very least, I see no mention of static forwarding in the docs: http://www.digitalmars.com/d/2.0/operatoroverloading.html#Dispatch The fact that the name of the