New set class
Michiel
nomail at please.com
Mon Feb 26 05:55:48 PST 2007
Frits van Bommel wrote:
>> No, I used your code. I just tested again to be sure. It doesn't work.
>> If you leave out the 'int' in the foreach_reverse statement, the silly
>> error message doesn't get displayed.
>
> Oh, did I put an 'int' in there?
>
> Then I guess type inference doesn't work with template functions :(.
Sounds like room for improvement to me.
Not that I'm ruling out that we just don't know how to do this yet. Any
clarification would be appreciated. Until then I'm sticking with my
runtime error message. I agree it's a shame, because this is exactly the
sort of error the compiler should catch. I would think this should be
able to expand to self-written error messages.
--
Michiel
More information about the Digitalmars-d
mailing list