1.0 ?? [templates and currying]

Daniel Keep daniel.keep.lists at gmail.com
Mon Nov 6 18:26:02 PST 2006



Walter Bright wrote:
> Tom S wrote:
>> Whoa, That would be awesome ! I don't think anyone would mind such a
>> change :)
>> I'm certainly not the only one to use that code/feature. E.g. that
>> link I gave you is from Kirk's Pyd, which contains modified versions
>> of my code. It's also based on efforts from Daniel Keep. But I'm sure
>> they will gladly welcome the enhancement you're proposing :)
> 
> I hate to tip over working code. I'll see if I can find another way.

To derive a function's return type, number of arguments, type of
arguments, I had to write an external Python script that spat out a huge
ugly-as-hell D source file with support for functions of N arguments.

I can't speak for Kirk, but if you can do away with the need for the
current way of doing things, I don't care if my code is completely
broken—I'd be a happy little Vegemiter[1].  Sometimes you need to break
a bone to help it heal properly.

	-- Daniel

[1]: I *hate* Vegemite, but I think you get the idea :3

-- 
Unlike Knuth, I have neither proven or tried the above; it may not even
make sense.

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/



More information about the Digitalmars-d mailing list