> On Mar 23, 2022, at 10:35 PM, Mattias Gaertner via fpc-devel 
> <fpc-devel@lists.freepascal.org> wrote:
> 
> Forget Java. The point is, that its "case" can be more than mere
> syntactic sugar. It could give a nice speed up and the compiler warns
> about unreachable statements.


Search for "Case statement for class introspection” and you see can the little 
discussion we had about a potential speed up and why it wasn’t viable so for 
now it’s just using a if-else statement with A.ClassType = B.ClassType 
comparisons. It’s just syntactic sugar at this point but it was trivial to 
implement and I think it’s much nicer to work with so for me that’s a total win.

Regards,
        Ryan Joseph

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to