Article View: comp.arch
Article #11880Re: new instructions
From: Ted Dunning
Date: Thu, 30 May 1991 17:38
Date: Thu, 30 May 1991 17:38
23 lines
1187 bytes
1187 bytes
In article <4711.2843a523@iccgcc.decnet.ab.com> herrickd@iccgcc.decnet.ab.com writes:
> There are provisions for octal and hex
> integers [in c],
I thought so too, and one day I tried to write an integer constant
in octal. The compiler said, "Nuts to you!" It took some hours,
but I finally convinced myself that the compiler manual and then
Kernigan and Ritchie provide octal notation for CHARACTERS. Nothing
else! I thought it was a major design flaw and was no accident.
kythera% cat x.c
#include <stdio.h>
main()
{
printf("%d\n", 010);
}
kythera% x
8
kythera%
Technical Details
Message-ID:
<TED.91May30113852@kythera.nmsu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!tedReferences:
<9105200213.AA05095@ucbvax.Berkeley.EDU> <12526@mentor.cc.purdue.edu> <4711.2843a523@iccgcc.decnet.ab.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!ted From: ted@nmsu.edu (Ted Dunning) Newsgroups: comp.arch Subject: Re: new instructions Message-ID: <TED.91May30113852@kythera.nmsu.edu> Date: 30 May 91 17:38:52 GMT References: <9105200213.AA05095@ucbvax.Berkeley.EDU> <12526@mentor.cc.purdue.edu> <4711.2843a523@iccgcc.decnet.ab.com> Sender: news@NMSU.Edu Organization: Computing Research Lab Lines: 23 In-reply-to: herrickd@iccgcc.decnet.ab.com's message of 29 May 91 17:57:06 GMT