Package and virtual functions
Jonathan M Davis
jmdavisProg at gmx.com
Wed Jun 13 15:48:09 PDT 2012
On Thursday, June 14, 2012 00:32:45 BLM768 wrote:
> For some reason, whenever I declare a method with package
> visibility, it becomes non-virtual. Is this normal behavior, or
> is there a bug in DMD 2.059?
Only public and protected functions can be virtual. private and package
functions are never virtual. This is by design.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list