Hacker News new | ask | show | jobs
by signa11 331 days ago
> ... we would need a standardized name-mangling scheme, ...

may you please elaborate on _why_ you think this is needed ?

1 comments

If the templates are monomorphized, each instantiation of a templated function will have a different address. To acquire the address of any given instantiation we need a symbol in the object file.
What isn't clear to me why one would ever want monomorphization in the first place.
Not ever wanting monomorphization seems like a bit of a strong claim to me. Why do you take that position?
I was asking the question why one would ever want it.
Right. I had interpreted you asking that question as you having taken that position and soliciting responses for a discussion. Seems that was an improper reading.
exactly !