Static Functions and pointers

Dan murpsoft at hotmail.com
Tue Apr 3 12:16:54 PDT 2007


According to the D language spec, a static function:

static int x(int y){
  return 3;
}

is *not* virtual.  Does this mean I can't use:

int function(int y) foo = &x;

???

Or is there something that needs to be changed?  I'm at work now and can't test it.  : p


More information about the Digitalmars-d-learn mailing list