[Qt-qml] Semantics of 'return' in a JavaScript block in QML

Pertti Kellomäki pertti.kellomaki at nokia.com
Thu Sep 16 08:45:32 CEST 2010


On 09/16/2010 03:37 AM, Kennedy Aaron (Nokia-MS-Qt/Brisbane) wrote:
> Internally
> the above is actually evaluated like this:
>
> Text {
>      text: (function() { if (condition) { return "A"; } return "B"; })()
> }
>    
This would actually be a good way to document it, at least to a former 
Lisp-head like myself ;-)
-- 
Pertti




More information about the Qt-qml mailing list