String const via the command line?

Discuss any general programming issues here

String const via the command line?

Postby SamuraiCrow » Wed Nov 01, 2017 8:26 pm

Is there a way to define a constant of string type in version 7 of Hollywood? I see that numerical constant definition is possible but I want to pass in a base path for an include directory.
SamuraiCrow
 
Posts: 101
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: String const via the command line?

Postby airsoftsoftwair » Mon Nov 06, 2017 8:48 pm

No, looks like this isn't currently implemented. I can add this for the next update, not a big deal.
User avatar
airsoftsoftwair
 
Posts: 2240
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: String const via the command line?

Postby SamuraiCrow » Tue Nov 07, 2017 11:26 am

Thanks, that will help a lot!
SamuraiCrow
 
Posts: 101
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: String const via the command line?

Postby airsoftsoftwair » Tue Nov 07, 2017 9:27 pm

Code: Select all
- New: SETCONSTANTS also allows you to define string constants now; just enclose the string between
  two square brackets [...]; if you need to include square brackets themselves, escape them by
  duplicating them, i.e. use [[ and ]]
User avatar
airsoftsoftwair
 
Posts: 2240
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 4 guests