[Issue 7280] Can't get address of array `.length` or `.ptr` properties

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 12 10:17:06 PST 2012


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


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |schveiguy at yahoo.com
         Resolution|                            |WONTFIX


--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2012-01-12 10:17:01 PST ---
arr.length is a read/write property.  Writing length is not a simple field set,
it calls a runtime function.
arr.ptr is a read only property.

Setting these must be done in tandem, and is done via the slicing interface or
via the length set operation.  You can circumvent as you say, but it should not
be easy, since it is very dangerous.

-- 
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