[Y-devel] Slider widget done
Andrew Suffield asuffield at debian.org
Wed Mar 10 18:12:53 GMT 2004
On Thu, Mar 11, 2004 at 01:34:35AM +0800, Trent Lloyd wrote:
> > ...I don't think it's a good idea to pretend that these things are
> > lvalues, because they aren't. Furthermore, you don't (can't) provide
> > the equivalent "read" behaviour in a sane way. Reading a property is a
> > two-step process.
>
> This is a nice feature of C#
>
> public string magicstring {
> set {
> // magic happens here
> }
> get {
> this_is_our_first_Step();
> return "magic"; // second step
> }
> }
...no it isn't. That's the same mistake again. Reads are a two step
process. You cannot compress them into one function no matter how hard
you try.
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : https://www.debian.org/ |
`. `' |
`- -><- |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040310/1b759189/attachment.bin
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved