[Issue 3971] Syntax & semantics for array assigns

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 6 01:28:02 PST 2010


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


Denis Derman <denis.spir at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |denis.spir at gmail.com


--- Comment #15 from Denis Derman <denis.spir at gmail.com> 2010-12-06 01:26:24 PST ---
(In reply to comment #7)
> You are right, the c=a; case can be allowed, it can just copy the ptr and
> length of the static array inside the struct of the dynamic array (this is how
> D currently works). Thank you for spotting it.

Is it really the way D currently works? Doesn't it dup the static array
instead? I thought static ones were on the stack while dynamic ones were on the
heap.

Denis

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