[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scheme accessors

From: Han-Wen Nienhuys
Subject: scheme accessors
Date: Wed, 25 Feb 2004 15:17:10 +0100

address@hidden writes:
> I had a cold sweat when running the new 2.1.26, but then read:
> "The naming of exported Scheme functions now follows Scheme conventions."
> Ouf.
> This is just a suggestion:
> It may be more idiomatic to define a setter for accessors. For
> instance, given the reader ly:music-property and the writer
> ly:music-set-property!:
>   (define-public ly:music-property
>     (make-procedure-with-setter ly:music-property
>                                 ly:music-set-property!))
> you can then use ly:music-property to access the property as before,
> but you can also use it with set!:

Can I ask for a patch?


 Han-Wen Nienhuys   |   address@hidden   | 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]