RES: [fpc-pascal] dot within unit file name

Marco van de Voort marcov at stack.nl
Fri Jan 18 15:59:26 CET 2008


> On Fri, 18 Jan 2008, Vinzent Hoefler wrote:
> 
> > On Friday 18 January 2008 15:19, Michael Van Canneyt wrote:
> > 
> > > > I saw this week a CodeGear Guy in a cg ng talking about that.
> > > > In Win32 its is Just dots in the name, nothing else.
> so
> ----------------------------
> unit a.b.c;
> 
> interface
> 
> Var
>   D : Integer;
> 
> implementation
> 
> end.

and 

unit x;

interface

type 
   sometype3 = record
         d: sometype3;
         end;

   sometype2 = record
         c: sometype3;
         end;

   sometype = record
         b: sometype2;
         end;

var 
  a: sometype;

> unit test;
> 
> interface
> 
  uses a.b.c,x;
> 
> Type
>   T = record
>    b : integer;
>   end;
> 
> Implementation
> 
> var
>   A : T;
> 
> begin
>   A.b.c.d:=3;// ???
> end.

This one shows that simply treating "a.b.c" as identifier _IF_ it is in the
uses clause also is ambiguous. 




More information about the fpc-pascal mailing list