>>> Can you think of a better
>>> term for a "bundle of values with no behavior that should never be
>>> inherited from"?
>> Isn't this akin to "Plain-Old Data"?
> It’s a decent match for the C++11 notion of POD, though I believe you can have an inheritance hierarchy of POD types. Earlier versions of the standard match less well (no user provided constructors allowed at all).
>
> Google results for "abstract value class” have nothing whatsoever to do with Daniel’s definition, so I can see how this might be confusing to someone reading the code. Maybe we can describe such things as spiritually-POD?
We can call it POD. i.e, class Foo is a plain-old data class that
bundles everything needed to process Bar events.
Yeah, sometimes Cheriton's world seems a little disjoint from reality,
but you do come away from his class (more-or-less) convinced that a
world where everyone followed his rules/policies, it would be, in some
ways, c++ utopia.
-Daniel
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
|