Date: Tue, 30 Oct 2007 10:37:35 -0700 From: Alfred Perlstein <alfred@freebsd.org> To: Bakul Shah <bakul@bitblocks.com> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, Garance A Drosehn <gad@FreeBSD.org>, freebsd-arch@FreeBSD.org Subject: Re: C++ in the kernel Message-ID: <20071030173734.GV33488@elvis.mu.org> In-Reply-To: <20071030163613.E70665B30@mail.bitblocks.com> References: <20071030055840.GS33488@elvis.mu.org> <20071030163613.E70665B30@mail.bitblocks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Bakul Shah <bakul@bitblocks.com> [071030 09:36] wrote: > > The structured macro paper referenced on the K wiki page also > seems rather interesting. A powerful macro facility needs to > be well integrated with the language (much like Lisp or > Scheme's macros) so that you can write for instance > > critical_section(lock) { > ... > bar: > ... > if (cond1) break; > ... > if (cond2) goto foo; > ... > if (cond3) goto bar; > ... > if (cond4) return; // from enclosing function > ... > } > ... > foo: do you mean like C++: do { critical_object critical_instance(); } ? Just wondering how much of this we want to roll on on our own. -Alfred
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071030173734.GV33488>