[fpc-pascal] dot within unit file name
Michael Van Canneyt
michael at freepascal.org
Fri Jan 18 12:07:17 CET 2008
On Fri, 18 Jan 2008, Bee wrote:
> > Use an underscore.
>
> Ok, I need to learn a new habit then. I can live with that. Thanks, Michael.
> :)
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.
Michael.
More information about the fpc-pascal
mailing list