Path: 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: 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 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 main() { printf("%d\n", 010); } kythera% x 8 kythera%