[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NEW & extending redefinition
acken (acken@informatik.uni-kl.de) schrieb:
 >  NEW (v, 0)
 >
 >Should this trigger a run-time check?  Without pathological 0-length
Yes! I doubt, a programmer want's to allocate zero bytes length: why then
allocate at all?
 >b) Should a failed NEW() return NIL or trigger a run-time check?  Most
Run-time error! NEW() is defined to return the address of the heap space.
Return of NIL has been elimiated in the Report somewhen.
 >The question is how this should be incorporated into OOC.  I suggest
Even when I'm new on the list: are you writing a compiler or designing a
language? I thought the first, so the answer is obvious.
+++hartmut