[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GLib GObject & Javadot Notation for scheme?
From: |
Andreas Rottmann |
Subject: |
Re: GLib GObject & Javadot Notation for scheme? |
Date: |
Wed, 28 Apr 2004 00:33:59 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Daniel Skarda <address@hidden> writes:
> Andreas Rottmann <address@hidden> writes:
> [snip - nice gobject example]
>> ;; it like this:
>> (set window 'border-width 20)
>
> What about srfi-17 syntax?
>
> (set! (window 'border-width) 20)
>
Sorry, but I don't really know how to achieve that; I think you mean
(set! (border-width window) 20), which would be GOOPS-accessor-style
also. One would have to create accessors for all the GObject
properties at runtime. I think this is a nice idea, but I think one
would have to write some C code to have it.
Andy
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Beware of bugs in the above code; I have only proved it correct,
not tried it. -- Donald E. Knuth