On 23 Oct 2006, at 19:30, Michael Van Canneyt wrote:

"Real" constants (in the sense of 'not changing') do not need to be typed in
the first place so

Const
  A = 'Some String';

Will do just fine.

You can also give them a type by simply adding a typecast around the value. This can be necessary sometimes for range checking (e.g. longint($80000000)) or for overload selection.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to