Article View: comp.lang.c.moderated
Article #2622Re: Legal alloca?
From: Mike Lee
Date: Fri, 19 Apr 1996 14:29
Date: Fri, 19 Apr 1996 14:29
10 lines
1005 bytes
1005 bytes
My complaint with alloca() is more fundamental. As a lowly programmer,
I spend a lot of time moving chunks of code around between functions.
Chunks of code containing alloca() present a special problem: if I move
the chunk into a subroutine, I cannot use the objects created by
alloca() in the caller, since they will die when the subroutine dies.
As time goes by and the function grows from enhancements and bug fixes,
this inability to move some chunks out makes the function larger and
less readable than it needs to be.
mikey
Technical Details
Message-ID:
<4l880e$752@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4kr7b2$kcb@solutions.solon.com> <4kurpk$an7@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: mikey@ontek.com (Mike Lee) Newsgroups: comp.lang.c.moderated Subject: Re: Legal alloca? Date: 19 Apr 1996 09:29:34 -0500 Organization: Ontek Corporation -- Laguna Hills, California Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4l880e$752@solutions.solon.com> References: <4kr7b2$kcb@solutions.solon.com> <4kurpk$an7@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com