[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exposing C struct contents in Scheme
From: |
Rob Browning |
Subject: |
Re: exposing C struct contents in Scheme |
Date: |
Mon, 28 Apr 2003 11:14:50 -0500 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3 (i386-pc-linux-gnu) |
Robert Uhl <address@hidden> writes:
> This is what I've done, partly because I'm writing in gtk+ and already
> have to write getters & setters in C; the burden of writing them in
> guile was negligible. Even in C you might find that your library is
> more robust if you always use functions (they can really be macros...)
> to get/set structure members.
And it makes it easy if you ever need to instrument public access to
the struct, or add locking, or whatever.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4