Skip to main content

Timeline for Class Versus Struct

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Oct 29, 2014 at 12:30 comment added jk. @Klaim technically its not right for C# either (structs can be on the heap) The important distinction in C# is between value semantics and reference semantics, a distinction that C++ doesn't need as it can have values or references for anything
May 28, 2013 at 8:31 comment added Klaim This answer is really misguided as .Net/C# struct/class meaning is different than C++ one: they use the same name but have different semantic depending on the language!!! In C++ there is almost no difference between struct and class and the question is totally wrong on the first point, which is right in c# and D but not in c++. So the link to this article, which is about .Net, is really really wrong. It's not C++!
Jul 30, 2011 at 23:52 history edited rwong CC BY-SA 3.0
Added quote from the MSDN article for convenience (subject to fair-use restrictions)
Jul 30, 2011 at 13:20 vote accept prometheuspk
Jul 30, 2011 at 10:04 history answered blubb CC BY-SA 3.0