D import stmt doesn`t seem to ' import'

Andy Balba pwplus7 at gmail.com
Tue Jul 28 05:45:03 UTC 2020


if file hh.d  contains :
   int hh_t ( int x)
   { writeln ("hhh x= ", x );
   }

and file test.d (in same dir as file hh.d ) contains :

import std.stdio ;
import hh ;
void main()
{  hh_t(3);
}

Why does compiling test.d generate an "undefined ref"   ?



More information about the Digitalmars-d mailing list