Am 10.11.19 um 17:42 schrieb J. Gareth Moreton:

Some of the "condition_in" functions need expanding though, and I don't yet have an answer if it's okay to do operator overloading in the compiler source (so I can do things like "if (jmp1.cond in jmp2.cond) then", for example, instead of the more ambiguous "if condition_in(jmp1.cond, jmp2.cond) then".

I wouldn't do, for somebody without experience with the code, this is confusing. Operator overloading makes imo only sense if it effects a lot of code and makes it more readable because it replaces a lot of nested function calls.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to