Am 13.10.2015 21:42 schrieb "MohsenTi" <[email protected]>: > > I want to add two overloadable operators “>>” and “<<” to use them as “shr” and “shl” ,or writing into and reading from streams and the other functions like those mentioned above.
Oh dear. You picked yourself the most complicated case in the whole compiler. ">>" and "<<" are automatically converted by the scanner to "shr" and "shl", because someone in the past thought this would ease porting of C-code... And nowadays I have to deal with the consequences related generics. My tipp: don't use these operators. Period. Regards, Sven
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
