I dont want it to complicate
If operator overloading is not possible
then better I stick to what is available.
Thanks
the
period is not an
operator if that is what you mean. It is just scoping: unit members, class members, record members, interface members, enums, etc.
Since scope is always compile time it can not be misused to turn it into a dynamic - scripting - language, which is what you are trying to do.
What you CAN do is use one of the many scripting languages that can be embedded in FreePascal. If these support classes (many do..), you can generate a scripted class on the fly and call with dot syntax....the scripting engine of choice...
- Pascal script
- JavaScript
- PHP
etc, etc..
I am now too busy with finishing the wiki entry for conditional compilation but I am sure I can come up with a PascalScript example later this week if you can't figure it out. (It is medium to complex code, but probably reusable)