Re: [AD] C++ woops !

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


aj wrote:
> line 563:  or  /allegro/src/fli.c
[snip]
> as far as i know your not supposed to declare vars mid function in
> pure 'C'

It's actually only mid-block that is forbidden, not mid-function, so
that's all right. (So `int foo(int x) { if (x) { int y; ...' is ok but
not `int bar(int x) { x=0; int y; ...'.)

-- 
Sven Sandberg    svsa1977@xxxxxxxxxx    home.student.uu.se/svsa1977



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/