Is the world coming to an end?

spir denis.spir at gmail.com
Sun Apr 3 12:16:47 PDT 2011


On 04/03/2011 08:49 PM, Andrei Alexandrescu wrote:
> On 4/3/11 1:40 PM, spir wrote:
>> On 04/03/2011 06:14 PM, Andrei Alexandrescu wrote:
>>> Adding octal!777 to std.conv is consistent with the notion that there
>>> still are
>>> a few uses for octal constants that are worth a presence in the standard
>>> library. It is also consistent with the desire to foster other
>>> user-defined
>>> literals defined from the same mold.
>>
>> What about a general baseNumber template instead?
>> ....which would also be trivially "alias-able":
>> alias baseNumber!3 base3;
>
> When was last time you've been in a place in life when you could have used a
> base 3 literal?

I'm not stating this point (implicitely); I mean that it would be useful. 
Rather you and others let me think at this by saying the template solution 
(octal!) is more general (than 0o).

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list