Variable typecasts
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
FPC allows variable typecasts that Delphi doesn't allow. Here is Delphi's help on variable typecasts:
"You can cast any variable to any type, provided their sizes are the same and you do not mix integers with reals."
FPC allows type sizes to differ and also allows a mix of integers with reals. It appears as though FPC is actually doing a value conversion, not a true typecast - i.e., doing the work of Int, Trunc, etc. in the "typecast". Not sure if that's a good idea.
Additional information:
Reporter: Phil H.
EMail: pjhess at purdue dot edu
Mantis conversion info:
- Mantis ID: 6660
- OS: All