March 31, 2005 Virtual functions and modules | ||||
|---|---|---|---|---|
  | ||||
Hello All ! From specs I've learnt that "since the D compiler knows all of the class hierarchy when generating code, all functions that are not overridden can be optimized to be non-virtual." Does it mean that all functions in a module are virtual becouse compiler can not know how one will use classes of that module, and will some other classes inherit them ?  | ||||
Copyright © 1999-2021 by the D Language Foundation
 
Permalink
Reply