Using Simple Evaluations When Setting Constants

Peter W A Wood peterwawood at gmail.com
Sat Jul 12 20:43:30 EDT 2014


I wanted to set a constant that included a specific Unicode code point, in this case a combining umlaüt. I didn't want to enter ë from the keyboard as that could result in a combined character rather than the grapheme cluster that I wanted.

I am requesting that LiveCode supports simple evaluation when setting constants, such as:
    constant noël = "noe" & numToCodepoint(0x0308) & "l"

Another sample simple evaluation is:
    constant approxPi = 22 / 7

It would of course be fantastic to be able to evaluate prior defines constants, variables and handler arguments. Then constants would effectively become immutable variables which will be almost essential when you add multiprocessing support to LiveCode. (You can already buy phones with 8-core processors).

I have submitted this as enhancement request 12802.

Regards

Peter



More information about the use-livecode mailing list