Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7254: Semicolon required when staticarrays follow invokable objects

Reported by:
Paul Higgins
Date:
12 Oct, 2009
Priority:
minor
Component:
Lasso 9
Version:
Keywords:
Platform:
Certain code does not output anything, although it should output true.

Comments

12 Oct, 2009 by Paul Higgins
if( queue( )->isA( ::trait_finiteForEach( ) ) )=>
{ 'asdf'; }
(: 1 ) == (: 1 );
06 Dec, 2010 by Paul Higgins
Nothing is output.
11 Mar, 2011 by kerry
The following code does not output anything, although it should output true.
20 Oct, 2011 by Kyle Jessup
if( queue->isA( ::trait_finiteForEach ) )
'asdf'
/if
(: 1 ) == (: 1 );
22 Jul, 2014 by Kyle Jessup
#7753 is a duplicate of this. Here is the data from that before I mark it as such:

The following code produces a parse error:
local(id) = 4

(: void, null, '')->contains(#id)
? fail('No specified ID for deletion')

The error: Unexpected: COMMA, line: 3, col: 8

If I stick a semi-colon at the end of the first line, the error goes away. The code seems unambiguous, but please let me know if I'm wrong.
23 Sep, 2015 by Eric Knibbe
Most likely the parser has an ambiguity where it assumes a `(:` appearing after an invokable object is a set of [http://lassoguide.com/language/operators.html#invocation dynamically generated parameters], and there's currently no way other than adding a semicolon to indicate it's just the start of a new statement involving staticarrays.
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft