Date: Wed, 20 Sep 1995 01:24:37 +0200 (EETDST) From: Juha Inkari <inkari@snakemail.hut.fi> To: hackers@freefall.freebsd.org Subject: Re: Coding style ( was Re: why is this not a bug in namei?) Message-ID: <199509192224.BAA29255@lk-hp-20.hut.fi> In-Reply-To: <199509192128.OAA10722@phaeton.artisoft.com> from "Terry Lambert" at Sep 19, 95 02:28:35 pm
next in thread | previous in thread | raw e-mail | index | archive | help
One reason to be carefull with goto statements is C++ compability. In C++ it is illegal to jump over variable initialization. For example, the code below is valid C, but not valid C++. if (1) { goto jump; } while (1) { int b = 1; jump: /* stuff ... */ } This is, of course, bad practise in plain C, too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509192224.BAA29255>