[Issue 5719] [patch] std.conv.to should support structs with custom converters in addition to objects

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 9 14:26:39 PDT 2011


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



--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-10-09 14:25:50 PDT ---
Structs are very much objects. Whether something is an object or not has
nothing to do with whether it's a reference type or a value type. Take C++ for
example. In C++, classes are generally value types rather than reference types,
but they're very much objects. The same goes for whether an object is
polymorphic or not. It's an object regardless of whether it's polymorphic. The
concept of an object in OO programming has nothing to do with the difference
between a struct and a class in D.

You're going to confuse people and generally be confused by others if you refer
to instances of structs as if they weren't objects. If you want to be clear
about the differences between structs and classes, you need to refer to structs
and classes and not try and use the term object to differentiate them.
Instances of both are objects.

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