351
submitted 1 year ago* (last edited 1 year ago) by raubarno@lemmy.ml to c/programmerhumor@lemmy.ml

Used all of these three. I don't want to even look at MS Visual C/C++ ecosystem.

you are viewing a single comment's thread
view the rest of the comments
[-] ale@lemmy.world 12 points 1 year ago

gcc has typeof, which is pretty neat.

[-] Sonotsugipaa@lemmy.dbzer0.com 2 points 1 year ago

Is it any different from the standard decltype?

[-] ale@lemmy.world 4 points 1 year ago

Good question. I didn't know about decltype. I guess they are slightly different in that decltype will also produce a type reference. Typeof just produces the type, even if you call on a reference.

this post was submitted on 11 Oct 2023
351 points (92.3% liked)

Programmer Humor

32559 readers
648 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS