constants concatenation

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

constants concatenation

Post by Lagoon »

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"
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

You can already do that..
What you can't do is assign an array, dictionary, or other 'dynamic' type into a constant.
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

Ok, I'm officially a noob :?
By the way, declaring a constant as an array of constants would be a cool feature as well
Locked