[Issue 1918] __traits(getVirtualFunctions) returns final functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 16 06:22:05 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1918
------- Comment #1 from dhasenan at gmail.com 2008-11-16 08:22 -------
Okay, I've worked out how all this works.
__traits (getVirtualFunctions) gets all non-static methods.
__traits (isVirtualFunction) returns true iff the argument is a non-static
method.
__traits (isFinalFunction) returns true iff __traits (isVirtualFunction)
returns true and the function is not marked final.
This is consistent, and 'fixing' the issues by changing features would result
in a loss of functionality.
This is not consistent with the expected meaning of "virtual function". I
request that the documentation for __traits be updated to include a definition
for "virtual function".
I also request that the keywords be changed to "getInstanceMethods" and
"isInstanceMethod" or something like that, for clarity.
--
More information about the Digitalmars-d-bugs
mailing list