[fpc-pascal] dot within unit file name
Bee
bisma at brawijaya.ac.id
Fri Jan 18 12:19:57 CET 2008
> 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.
-Bee-
has Bee.ography at:
http://beeography.wordpress.com
More information about the fpc-pascal
mailing list