Re: delete [] pMem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo Martin,

* Martin Richter [MVP] <martin.richter@xxxxxxxx> schrieb:

Aber ich bin mir sicher, dass es auch in diesem Fall genügend
Entwickler gibt, die dann MS die Schuld geben! <veg>

Garantiert :-) Aber MS kennt seine Kundschaft, und die wissen auch, dass
sie sich dann unbeliebt machen, egal was im Standard steht.

Im Annex J des ANSI C Standards war "undefined behaviour" schön zusammen
aufgelistet, im ANSI C++ Standard ist es über die gesamten 776 Seiten
verteilt (Fassung von 1998). Mein Favorit aus ANSI C:

,----
| A nonempty source file does not end in a new-line character, ends in
| new-line character immediately preceded by a backslash character, or
| ends in a partial preprocessing token or comment (5.1.1.2).
`----

Bei irgendeinem der im Laufe der Jahre verwendeten Compiler hatte ich
tatsächlich mal ein ganz obskures Problem, weil eine include-Datei nicht
mit einem LF endete.

Schönerweise gibt es dann auch noch neben "undefined behaviour" und
"implementation defined behaviour" das "unspecified behaviour" ;-) Das
macht C++ so "spannend" und krank, und Programmierer, die portablen Code
schreiben können so selten.

Freundliche Grüße,
Christoph
.



Relevant Pages

  • Re: C99 Grammar Definition
    ... Annex A of the C standard contains the lexical grammar. ... You can buy it for something like 20 US$ from ANSI. ...
    (comp.lang.c)
  • Transponder Protocol Open Standard rec.pets-2005a
    ... But anybody can write an open standard, ... transponders readable by the standard is not intended to be identical ... as 20 character readings under this standard unless the reader designer ... If an excerpt string shows four or fewer transitions ...
    (rec.pets)
  • Re: Herbert Schildt, author of The Complete C++ Reference (NOT C Unleashed) rehabilitated on wikiped
    ... well as on Amazon and wikipedia, on Schildt, Heathfield et al. did try ... Annotated Annotated C Standard" at http://www.lysator.liu.se/c/schildt.html, ... auditing EACH AND EVERY LINE for character width dependent operations ... standard (something that is not mentioned in the annotations), ...
    (comp.programming)
  • Re: newbe: documentation string length
    ... as it addresses a reasonable goal state for a standard. ... with the Iraq war in that it's popular for the Bush camp over the last ... it hoping to make its meaning as apparent as possible, ... > The moral I'm minded to draw is that the ANSI ...
    (comp.lang.lisp)
  • Re: ANSI C compliance
    ... because I'm liable to be quoted out of context -- ANSI ... Several others have made this point, but even when portability is ... or for a million other but-what-difference-can-that-make reasons. ... Standard conformance is an instance of undefined behavior, ...
    (comp.lang.c)