This problem is similar to that fixed in the fbc rev 0.91.0: The Is operator (RTTI) treated UDTs with the same identifier but from different namespaces as being equal
Since fbc rev 0.91.0, the namespace structure is now encoded in the RTTI block where is the UDT name, and the 'Is' operator works with namespaces.
IMHO, '#print typeof(a.T)' should return 'A.T' and '#print typeof(b.T)' should return 'B.T'.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Interesting!
This problem is similar to that fixed in the fbc rev 0.91.0:
The Is operator (RTTI) treated UDTs with the same identifier but from different namespaces as being equal
Since fbc rev 0.91.0, the namespace structure is now encoded in the RTTI block where is the UDT name, and the 'Is' operator works with namespaces.
IMHO, '#print typeof(a.T)' should return 'A.T' and '#print typeof(b.T)' should return 'B.T'.
It's weird because everything else works well.
Test program:
Compilation:
Execution:
It is as if in-house 'aT' and 'bT' are well-typed 'A.T' and 'B.T', but only namespace structure is filtered by 'typeof()'.
Last edit: fxm (freebasic.net) 2015-04-12
This should be fixed in Git now: [e8871a]
Related
Commit: [e8871a]