[fpc-devel] class abstract, class sealed implementation. please review.

Peter Popov ppopov99 at gmail.com
Mon Oct 19 10:47:40 CEST 2009


>
> All features being equal, I would rather have class constants and class  
> types
> included in FPC.

Class constants are exceptionally bad idea: I've seen a guy define  
PI=3.1415... inside a C++ class! The same functionality already exists in  
fpc: define a (class, inline) function returning the constant value. Then,  
if you are a moron, you will have to write a lot of code to do a senseless  
thing, otherwise possibilities for abuse multiply exponentially :-)



More information about the fpc-devel mailing list