PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
constants concatenation

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Fri Jul 07, 2006 10:34 am    Post subject: constants concatenation Reply with quote

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"

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Fri Jul 07, 2006 10:37 am    Post subject: Reply with quote

You can already do that..
What you can't do is assign an array, dictionary, or other 'dynamic' type into a constant.

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Sat Jul 08, 2006 10:55 am    Post subject: Reply with quote

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

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty