🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #599

(volatile) foo

#599
From: Bakul Shah
Date: Sun, 17 Sep 1989 18:07
18 lines
820 bytes
Is the following legal?

	char * foo;
	while ((volatile)foo)
		continue;

If legal, what does (volatile)foo mean -- is it
(volatile char *)foo or (volatile int)foo?  The former
would be more useful.  The spec seems to say it is
legal but I can not find anything about its meaning.

BTW, is anyone working on a denotational semantics
definition of ANSI C (or a major subset of it)?  Don't
laugh.

Thanks!

-- Bakul Shah <..!{ames,sun,ucbvax,uunet}!amdcad!light!bvs>
Technical Details
Message-ID: <1989Sep17.180722.21889@light.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!bbn!oliveb!pyramid!amdcad!light!bvs

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!bbn!oliveb!pyramid!amdcad!light!bvs
From: bvs@light.uucp (Bakul Shah)
Newsgroups: comp.std.c
Subject: (volatile) foo
Message-ID: <1989Sep17.180722.21889@light.uucp>
Date: 17 Sep 89 18:07:20 GMT
Reply-To: bvs@light.UUCP (Bakul Shah)
Organization: -
Lines: 18