It is currently Wed Oct 15, 2008 11:24 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: constants concatenation
PostPosted: Fri Jul 07, 2006 6:34 am 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
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"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 6:37 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 422
Location: San Diego, California
You can already do that..
What you can't do is assign an array, dictionary, or other 'dynamic' type into a constant.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 08, 2006 6:55 am 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
Ok, I'm officially a noob :?
By the way, declaring a constant as an array of constants would be a cool feature as well


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl