[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] chicken-primitive-inlines.scm
From: |
Kon Lovett |
Subject: |
Re: [Chicken-users] chicken-primitive-inlines.scm |
Date: |
Mon, 2 Feb 2009 10:07:43 -0800 |
On Feb 2, 2009, at 1:02 AM, Sven Hartrumpf wrote:
Hi all.
Can anybody explain how one can exploit the following new file:
chicken-primitive-inlines.scm
(Sorry, name 'chicken-primitive-inlines.scm' was wrong, corrected.)
Yes, don't ;-)
These are dangerous routines, making assumptions about the types of
their arguments. While not yet in service of Chicken 4 they are
phasing in for Chicken 3. The purpose is to increase the readability
of core code (and high-performance extensions, such as the 'mailbox'.)
Also, the identifiers are not quite fixed.
Examples:
(include "chicken-primitive-object-inlines")
(##sys#setslot v i '(a b)) -> (%vector-set! v i '(a b))
(##sys#setislot v i 4) -> (%vector-set-immediate! v i 4)
(##sys#slot l 1) -> (%cdr l)
(##sys#setslot l 1 x) -> (%set-cdr l x)
(include "chicken-thread-object-inlines.scm")
(##sys#slot t 7) -> (%thread-reason t)
Ciao
Sven
_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users
Best Wishes,
Kon