Gale Paeper wrote:
I once thought of something like "type cast operators" (as in C++), though I haven't thought about any details (syntax, how to implement it, probably not exactly easy) ...
In a recent look at some PASCAL-XSC documentation, I noticed PASCAL-XSC provides support for both of these. I also noticed that type conversion/casting operators in conjunction with operator overloading is a bucket of worms in PASCAL-XSC just like it is in C++.
I feared so.
I'm just commenting on what PASCAL-XSC provides. Whether or not GPC should provide PASCAL-XSC compatibility support for those feature is a whole different subject.
I'm not sure if we should strive for full PXSC compatibility. It seems to have some more "interesting" issues. Maybe someday someone will try, but at least for now I won't ...
Frank