logoalt Hacker News

pjc50yesterday at 12:42 PM2 repliesview on HN

OK then, what is the opposite of this, the adhoc union?


Replies

Semaphoryesterday at 1:02 PM

I don’t know for sure, but I’m guessing something like

(Dog, Cat) pet = new Cat();

So without defining the union with an explicit name beforehand.

show 1 reply
SideburnsOfDoomyesterday at 12:44 PM

I don't follow the question. Maybe define the term that you are using?

show 1 reply