[osol-code] Re: [ksh93-integration-discuss] Trouble with"ERROR:ctfconvert:pics/wordexp.o: Couldn't parse stab "#vla0:(0, 14)"(source file pics/wordexp.o)" ...

Casper.Dik at Sun.COM Casper.Dik at Sun.COM
Tue Nov 14 23:44:05 PST 2006


>Ian Collins wrote:
>> Alan Coopersmith wrote:
>> > Roland Mainz wrote:
>[snip]
>> > Isn't that what alloca() is for?   (Ignoring the simple fact that
>> > alloca()
>> > is actually horribly broken since it never tells you if it's failed, just
>> > lets you corrupt your stack when you ask for too much memory.)
>> >
>> Just like C99 VLAs!
>
>Umpf... C99 VLAs are neither horrible nor broken. They're a valid
>language construct and highly usefull if properly used (noone is
>suggesting to allocate 300GB that way).


I'm sure "Just like VLAs" refers to the "won't tell if it fails" not
to horrible and broken; I don't see alloca() being much different than
VLAs, to be honest; it's just syntactic sugar.

Casper



More information about the ksh93-integration-discuss mailing list