issues with property terminal [message #608326] |
Sun, 06 June 2010 00:55 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
Hi,
Another change that I am contemplating is the syntax for properties,
currently it is $QID e.g. $this.is.a.property, this is a problem since
properties can be used in expressions, and one of things you may want to
do is to invoke a member function on a string property.
As an example $this.is.a.property.size() results in a call on the value
of the property "this.is.a.property.size", whereas the code
$this.is.a.property .size() performs the call.
I can think of several ways to handle this - the simplest is to change
the terminal so there is an ending delimiter.
Either:
$this.is.a.property$
or
${this.is.a.property}
I like the later, as it is more clear that the ${ } is syntax to
reference the property, and it is a commonly used construct.
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.01343 seconds