Question about alias and getOverloads
uranuz
neuranuz at gmail.com
Thu Jan 30 18:20:47 UTC 2020
I apologise that I need to revive this discussion again. But
still I got answer to only one of my questions. I know that it is
a common practice in programmers society that when someone asks
more than 1 question. Then people who answer them usually choose
only one of these questions that is the most easiest to answer.
But the rest of the questions are just ignored. But the topic is
still considered resolved. Person who answered `increased his
carma`. All are happy. Except for the man who asked the question,
but only got answer that is trivial, easy-to-answer or
easy-to-find by himself. And actually got the answer to only one
of the questions. And it is the less important.
At my job in this case I usually ask questions only one by one.
It gives to person that shall try to answer no options and to
answer only to this question. So only when I got answer that
satisfies me I start to ask the next question.
I didn't want to use this technique there, because I believe that
D community is better...
Sorry for this disgression, but I still don't understand several
main points:
1. Why API for __traits(getOverloads) is so strange. Why I need
to find parent for symbol myself and pass actual symbol name as
string, but not actually pass a symbol itself? It is very strange
to me...
2. Where in the documentation is mentioned that when I create
alias to name that is a function or method that has overloads
then this alias is actually an alias not only for the first or
second or randomly selected overload in overload set, but an
alias for all of overloads in set at the same time?
Thanks. Have a good day!
More information about the Digitalmars-d-learn
mailing list