[Issue 9489] writeln of struct with disabled copy ctor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 15 10:58:56 PDT 2013


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


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #3 from hsteoh at quickfur.ath.cx 2013-03-15 10:58:55 PDT ---
This issue is not just limited to printing. Structs that have @disabled
this(this) are currently highly-crippled, because almost everything in Phobos
assumes that structs can be passed by value. A struct range with @disabled
this(this) is unusable with any range function unless you do something really
ugly like (&range).cycle(), etc., which is a kind of hack (taking advantage of
D's automatic dereference when a pointer is used with the . operator).

Auto ref would solve a lot of these problems.

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