On Fri, 18 Jan 2008, Bee wrote:
> > For clarity: I am not against this dot by itself. I can only assure you, if > > implemented, that it will not end up in 2.2.2. > > > > As for implementing this feature: this is not so trivial as one might think. > > > > 1. The parser needs changing. That's probably the easy part. > > > > 2. Symbol lookups need changing. This is the hard part, because you must be > > able to handle correctly unitname.identifier.identifier2.identifier3 > > > > It doesn't take a lot of intelligence to see that if unitname can > > containe one (or more) dots, this mechanism becomes suddenly a lot harder > > because your unitname may, by accident, match unitname.identifier1 of > > a symbol in another unit. > > > > And doing all this in a way that doesn't change current behaviour... > > Not something you can do in a day, if you ask me. > > Maybe it is a good time for me to learn fpc compiler codes now. I never look > inside them before, just the RTL and FCL. :-D > > Can you show me which files I need to look and learn in order to have this > feature? TIA. I'm not an expert, the compiler is not my domain, but: parser is in parser.pas sym*.pas files contain the symbol handling. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal