@@ -0,0 +1,15 @@
+unit nt.a;
+
+interface
+Function GetIt : String;
+implementation
+begin
+ getit:='a1';
+end;
+end.
+unit nt.nst;
+Procedure HelloThere;
+ Writeln('Hello, there');
+unit nt2.a;
+ getit:='a2';
+unit nt2.nst2;
+Procedure HelloThereToo;
+ Writeln('Hello, there too!');
@@ -0,0 +1,7 @@
+{$NAMESPACES nt}
+uses nst;
+ hellothere;
@@ -0,0 +1,8 @@
+{$NAMESPACES nt2,nt}
+uses nst,nst2;
+ hellothereToo;
+// searched from last to first !
+uses a;
+var
+ which : string;
+ which:=GetIt;
+ if (which<>'a1') then
+ begin
+ Writeln('Wrong namespace used, expected a1, but got: ',which);
+ Halt(1);
+ end;