Is the world coming to an end?

Nick Sabalausky a at a.a
Sun Apr 3 01:54:46 PDT 2011


"Walter Bright" <newshound2 at digitalmars.com> wrote in message 
news:in9c9h$134t$1 at digitalmars.com...
> On 4/3/2011 12:12 AM, Russel Winder wrote:
>> On Sat, 2011-04-02 at 18:36 -0700, Walter Bright wrote:
>>
>>> Yes, except for something else - the rarity of need for octal literals. 
>>> The only
>>> modern usage I've seen of it is for file permissions.
>>
>> What is the use for binary literals or hexadecimal literals, I can't
>> think of one.
>>
>> Except perhaps specification of register save masks and control status
>> work literals -- which is of course where the octal stuff came from in
>> the first place in C and when the VAX replaced PDP, hexadecimal was
>> rapidly introduced. (*)
>
> I still prefer binary for that. It takes me a senior moment or two to 
> remember what bit pattern 0xB is, for example.
>

Somtimes I have to wonder if I'm much older than I think I am. I'm exactly 
the same way as you with "moment or two to remember what bit pattern 0xB is, 
for example", and if I'm getting senior moments in my late 20's then 
something is very very wrong ;)




More information about the Digitalmars-d mailing list