View source code
Display the source code in dmd/dclass.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.dclass.BaseClass.fillVtbl

Fill in vtbl[] for base class based on member functions of class cd.

extern(C++) bool fillVtbl (
  ClassDeclaration cd,
  dmd.root.array.Array!(dmd.func.FuncDeclaration)* vtbl,
  int newinstance
);

Input

vtbl if !=NULL, fill it in newinstance !=0 means all entries must be filled in by members of cd, not members of any base classes of cd.

Returns

true if any entries were filled in by members of cd (not exclusively by base classes)

Authors

Walter Bright

License

Boost License 1.0