Hi,
In message "Re: Can't define +@ for Symbol (plus ruby install problem)"
on 03/12/13, "T. Onoma" <transami / runbox.com> writes:
|I'm putting together a small type library (maybe called lightype, not sure
|yet), it includes implementation of interface contracts, Euphoria like type
|system, and attribute casting. For the last, I have made a simpler way to
|define attibutes like this:
|
| attribute :a, +:r, -:w
|
|This makes three attributes, :a is an accessor, :r is a reader, :w is a
|writer.
Hmm, I like
attribute "a", "+r", "-w"
much better than "enhancing" standard class. I need to think about
identity operator anyway, though.
matz.