Peter Memishian <[EMAIL PROTECTED]> wrote:

>
>  > Except that you don't have propper type checking anymore
>
> Huh?  How is type safety with alloca() any different than with malloc()?

I don't see any difference between:

-       char    arr[length];

-       char    *arr = alloca(length);

-       chat    *arr = malloc(length);

The typechecking is done against "arr", not against the way
the space behing is fetched.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to