[fpc-pascal] Traits Proposal

Ryan Joseph genericptr at gmail.com
Thu Feb 11 04:20:31 CET 2021



> On Feb 10, 2021, at 7:47 PM, Martin Frb via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> I understand it is for conflict resolution only. But see my example => as soon as you need to repeat a trait with just a change in name, you always need conflict resolution.

Please post the code snippet again. I'm not sure I understand what you're saying. The most important thing here is that we don't allow the programmer to write ambiguous code. If all else fails the code must fail to compiler, if there's any chance of any conflict whatsoever. The first reason this idea gets shot down is because people think of crazy "with" statement bugs and we need to avoid that at all costs.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list