Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mjr@tis.com (Marcus J Ranum)
Subject: Re: Might this be a VMS or C problem on the AXP?
Date: 27 Mar 1993 22:16:15 GMT	[thread overview]
Message-ID: <1p2jnf$5p2@sol.TIS.COM> (raw)
In-Reply-To: dsmith.733265264@aa.cad.slb.com

>According to the ANSI spec, 
>   "If a program attempts to modify a string literal..., the behavior
>   is undefined". (Section 3.1.4)

	Undefined means that it can do anything it likes, including
"work" more or less correctly. The code is broken, but you cannot
expect the system to always trap it.

	[My usual diatribe about C's failings, and why C code for any
non-trivial applications should be developed under interpreted environments
like Saber-C omitted.]

mjr.


  reply	other threads:[~1993-03-27 22:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-03-27 20:47 Might this be a VMS or C problem on the AXP? J. Daniel Smith
1993-03-27 22:16 ` Marcus J Ranum [this message]
1993-03-27 22:17 ` Ron Natalie
1993-03-29  2:43 ` Blair Phillips - Digital
1993-04-02 13:45   ` J. Daniel Smith
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox