guile-devel
[Top][All Lists]
Advanced

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

Re: Smart variables, dumb variables


From: Marius Vollmer
Subject: Re: Smart variables, dumb variables
Date: 14 Aug 2002 21:35:29 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

address@hidden writes:

> I'd propose a slight modification, though: use one flag for the setter,
> one for the getter, like so:

Good idea!

> It looks more symmetric ;-) and it's still possible to implement
> `unsettable' variables (by appropriately implementing a setter
> function which does nothing, complains, whatever seems
> appropriate). I think it's even more flexible.

Read-onlyness should be a property of a variable that can be detected
by the compiler so we wouldn't want to bury it only in the setter, I'd
say.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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