Re:The "C is Efficient" Language Fallacy (2006)
by danieldk on Monday January 09, 2012 @02:42PM
(#3443925)
The C99 standard specifies that the stdlib.h header should be provided with amongst other things malloc()/free(). So, C99 provides heap allocation functions.
Also, some people will argue that 'asking' an array on the stack is also allocation ;).
Re:The "C is Efficient" Language Fallacy (2006)
by derleth on Monday January 09, 2012 @05:59PM
(#3444728)
They're standardized, so they are part of the language.
They don't have special syntax, but, then, neither does practically anything you do in Common Lisp, and that's standardized as well.
Re:The "C is Efficient" Language Fallacy (2006)
by stcredzero on Monday January 09, 2012 @07:16PM
(#3445002)
They're standardized, so they are part of the language.
"Language" has slightly different meanings in different contexts. Perhaps he's talking about something in a theoretic context, as opposed to practice? Smalltalk has no special syntax for allocation (creating new objects) either.
It doesn't even let you do that -- those things are external library calls.