Re: C++ in the kernel



* Bakul Shah <bakul@xxxxxxxxxxxxx> [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
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: C++ in the kernel
    ... The structured macro paper referenced on the K wiki page also ... if goto foo; ... This as an example of what *I would want* a macro facility to ...
    (freebsd-arch)
  • Re: C++ in the kernel
    ... The structured macro paper referenced on the K wiki page also ... if goto foo; ... You can create an object on the stack that locks the mutex given ... When the object is destroyed by stack popping, ...
    (freebsd-arch)
  • Re: A "killer" macro
    ... could be included as a feature in another language, ... The "killer" macro, in CL ... of the functional features of Lisp. ... When confronted by fellow programmers with the question "so why is ...
    (comp.lang.lisp)
  • Re: Spell Check Protected Form with Bookmarks
    ... Language ID = wdEnglishUS. ... Bookmarks are not set to calculate on exit. ... The macro to check spelling works, but it assumes that you are working ... because the text fields get set back to not spell check and it does not ...
    (microsoft.public.word.spelling.grammar)
  • OT: sexps for other languages?
    ... macro system that is a little more powerful than C's. ... One of the big challenges is that some branch instructions have ... Following in the tradition of early C++, this language would be ... Coming back to the (incf asm) topic: I'm still very much a lisp ...
    (comp.lang.lisp)