Identifier (...) is too long by X characters

Tom S h3r3tic at remove.mat.uni.torun.pl
Mon Jul 10 00:46:44 PDT 2006


Chris Nicholson-Sauls wrote:
> Tom S wrote:
>> ...DMD eats many many rams...
> 
> *Gasp!*  Those poor sheep/goats!
> 
> I would be interested in seeing exactly what your 'Input' mixin does.

There you go: http://158.75.59.9/~h3/code/processing.rar
It's in processing/input.d


> The use of self-referancing returns to initialize it is pretty nifty 
> though.  Might be a way to get rid of the '.end' at the end, though?

Hmm... check the code and decide for yourself... I thought using the 
'end' was the most straightforward approach. Otherwise the implicit name 
promotion wouldn't work and I'd have to use field.field all over the 
place. 'field.add' could work, but I considered forcing the user to add 
one 'end' to be simpler.


-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/



More information about the Digitalmars-d-bugs mailing list