Strings: strange behaviour

23 views
Skip to first unread message

Relez

unread,
Mar 11, 2012, 6:10:08 AM3/11/12
to FalconPL
ar = [1,2,3]
st = @"aaa $ar[0] aaa" // ok!
st = @"aaa$ar[0] aaa" // ok!
st = @"aaa$ar[0]aaa" // crash!!

why?

MIURA Masahiro

unread,
Mar 11, 2012, 11:12:52 PM3/11/12
to falc...@googlegroups.com

Perhaps it's not clear for the interpreter where the $-variable ends.

@"aaa$(ar[0])aaa" is ok.

Steven Oliver

unread,
Mar 12, 2012, 8:09:07 AM3/12/12
to falc...@googlegroups.com
Just out of curiosity, do you have a use case for the above example? 

Renato Lenzi

unread,
Mar 12, 2012, 10:37:42 AM3/12/12
to falc...@googlegroups.com
No, i noticed the issue while experimenting on strings.

--
You received this message because you are subscribed to the Google Groups "FalconPL" group.
To post to this group, send email to falc...@googlegroups.com.
To unsubscribe from this group, send email to falconpl+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/falconpl?hl=en.

Relez

unread,
Mar 14, 2012, 7:06:58 PM3/14/12
to FalconPL
Yes may be. Thx you
Reply all
Reply to author
Forward
0 new messages