Ability to assign PB functions' expressions to constants

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Ability to assign PB functions' expressions to constants

Post by Psychophanta »

Currently can be done this:
#ff1=1/4.5*3+42-23|7~57!25%24
which means that operands' expressions are evaluated at compile time when assigning to a constant.

But this can't be done:
#ff1=ACos(-1)
which means that native PB functions (using constants only, not variables, of course) are not evaluated at compile time when assigning to a constant.

Allowing this should be good :)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

that would be nice indeed. :)
hellhound66
Enthusiast
Enthusiast
Posts: 119
Joined: Tue Feb 21, 2006 12:37 pm

Post by hellhound66 »

Removed.
Post Reply