Julian Elischer schrieb:
Christoph Mallon wrote:
No, this is not what I intended. The idea is to limit the scope of
local variables as much as is sensible. Maybe I should have been more
explicit. On the other hand, I also did not mention that it is just
about moving to the start of inner block statements.
I can see moving declarations to an inner scope {} in some cases but
I think allowing us to declare them mixed in with the code,
(even though some compilers allow it) will be a mistake.
Some compilers? According to my information every compiler, which is
even remotely relevant, supports it. Even PCC claims it does!
The only compiler, which I am aware of and which has a relevant
distribution, which doesn't support it, is MSVC - but I highly doubt,
that it is relevant in any way for FreeBSD.
I think this was done to allow macros to declare vars they needed.
I'd hate to see it in our code..
You are accusing me for proposing changes because "I felt like it", but
all you give is "I'd hate [...] it" and "[it] will be a mistake" without
any further justification. It seems to me, that you're applying double
standards. /:
Christoph
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"