I think there is a shorter version, but what is the exact return type of Ord() again?
By the way, what you're reinventing here is type marshalling, for one single type class, and in a very roundabout way. If that is really what the discussion settled on, it would probably make sense to not tack this onto a particular stream implementation but instead provide a general marshaller for it. -- Regards, Martok _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel