Variables of struct and class types are called objects - discuss

monkyyy crazymonkyyy at gmail.com
Mon Aug 4 03:17:17 UTC 2025


On Monday, 4 August 2025 at 02:03:35 UTC, Jonathan M Davis wrote:
> I don't think that I've ever seen anyone claiming before that a 
> an instance of a struct should not be considered an object.

Calling a plain old data like a vec2 an "object" is projecting 
and shouldnt be done.

---

The terminology of a worldview with lengthy prescriptions, 
shouldnt pretend to be merely descriptive. Bringing up a legal 
term with a precise punishment and criteria is understood to be a 
threat in several contexts.

OO clearly has natural claim to the word, and as a worldview is 
*wildly* prescriptive, whiny and moralizing. When any of all 
y`all use the term your invoking the conartist uncle bob and 
whatever connotations the listener has of that man and others 
like him, the empire of books, courses and supposed wisdom.

Maybe you dont notice others either signaling their political 
sides or letting it leak out unintentionally from word choice, 
but others are quite capable of it. An talk from an oo conference 
will probably use the term or more specif variants like 
"message"/"mailbox", while I bet the term is 5% of the "better 
software conference" with its data oriented sympathies would go 
with "struct"/"data"


More information about the Digitalmars-d-learn mailing list