[Issue 808] using properties as lvalues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 31 04:44:28 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=808


Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-05-31 04:46:16 PDT ---
The examples in my original post, as well as Witold's "array.length *= 2", work
now.

This issue originally referred to built-in language properties, like .length.
The @property kind of properties can be lvalues if the getter returns an lvalue
- for example, @property ref int x() { return _x; }, or as Witold mentioned,
using wrapper types.

I think we can consider this bug as resolved today.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list