Just curious, is there a way to have a getter for a constant variable? I have a sort of internal version number to ensure that two versions of a library are still speaking t
Just do:
public const Int16 protocol_version = 1;
This will provide a public getter as a const cannot have a setter.
const