A cast pointer is NOT an lvalue!? (ANSI C)
Chris Torek
chris at mimsy.UUCP
Sun Oct 16 01:07:55 AEST 1988
In article <482 at midgard.mn.org> dal at midgard.mn.org (Dale Schumacher) asks:
>... If an implementation stores different object types in different
>areas of memory, then wouldn't that fail also? How would one implement
>malloc() on such a machine?
The short answer is `one would not'. The long one is that maybe it
would work if the compiler recognised allocation calls (malloc, calloc)
and inserted special typing information. At any rate, this sort of
thing is why `new' is a keyword in other languages.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list