On Fri, 19 Oct 2007, Paul Ishenin wrote:

> Michael Van Canneyt wrote:
> 
>  
> > > Ok, no problem - lets it be ppu. We only need some way of accessing that
> > > data.
> > > Is ppu reading methods already exists in RTL or another fpc package?
> > >     
> >
> > The ppu unit does what you need. It is used by the compiler and dumppu
> > program
> > provided by FPC. Maybe we should make a copy of this unit in the packages,
> > and
> > extend it with some search methods/classes.
> >   
> I dont like idea of maintaining code more than in one place. The best way is
> to create sone unit to read/write that ppu files and use it in all places: in
> compiler, dumppu and later in lazarus. Of maybe it is not possible (for fpc I
> am simple user)?

Well, the unit is in the compiler directory, and is not meant for distribution.
It can only be in the compiler directory, otherwise it's impossible to 
bootstrap 
the compiler (i.e. compile the compiler the first time).

> Btw, is proposed syntax need modification or it looks ok?

For me it is OK. It's more pascal than the construct introduced in Delphi.
It's also more like the construct we use for procedures [public,Alias:'some'];
and interfaces [GUID], so for me this is very OK.

If you implement this, I suggest you also implement it in pscanner in 
fcl-passrc,
or fpdoc will stop working as soon as you use it in the LCL.

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to