Messages in this thread |  | | | From | "Andrew E. Mileski" <> | | Subject | Re: kernel programming questions | | Date | Tue, 1 Jul 1997 17:19:34 -0400 (EDT) |
| |
> > int foo(int bar) > > { > > int foo_bar[bar]; > > ... > > } > > Even though that works.... There SHOULD be a problem with it! Don't > write code like that. For some reason gcc lets you get away with it. > If you must write code like that it's broken from the start. Automatic > variables are supposed to be automatic, not dynamic.
Hmm...many compilers I've used allow this.
Anyways, it is A Bad Thing(tm) since the kernel has a tiny stack.
-- Andrew E. Mileski mailto:aem@netcom.ca
|  |