constants concatenation
Posted: Fri Jul 07, 2006 6:34 am
I'd like to be able to do something like this (unless it's already possible, but I don't think so)
const PREFIX := "MyPrefix";
const SUFFIX := "MySuffix";
const MY_CONST := PREFIX + "_" + SUFFIX; // equals "MyPrefix_MySuffix"
const PREFIX := "MyPrefix";
const SUFFIX := "MySuffix";
const MY_CONST := PREFIX + "_" + SUFFIX; // equals "MyPrefix_MySuffix"