what was wrong with struct & class in C++?
Leandro Lucarella
llucax at gmail.com
Wed Dec 12 18:29:30 PST 2007
Martin Hinsch, el 12 de diciembre a las 22:02 me escribiste:
> I don't mean to be offensive, but I totally don't see the point. Of course
> C++ structs (being inherited from C) are too low-level. Still, I would
> argue that this is a property of C++ not of value-semantics.
Value-semantics has the "slicing problem" and works very poorly with
virtual methods. It adds a lot of complexity.
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
De las generaciones venideras espero, nada más, que vengan.
-- Ricardo Vaporeso
More information about the Digitalmars-d
mailing list