[a103] fat arrow - no expr and global var ref. Topic is solved

Report problems with documented functionality
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

[a103] fat arrow - no expr and global var ref.

09 Jun 2019, 05:36

Issue 1, in debug build:

Code: Select all

(a=>) ; DEBUG: ParseAndAddLine() called incorrectly.
Issue 2,

Code: Select all

a:=0
a()=>a
msgbox a() ; blank
by assigning b:=a()=>a the problem is circumvented.

Cheers.
lexikos
Posts: 9591
Joined: 30 Sep 2013, 04:07
Contact:

Re: [a103] fat arrow - no expr and global var ref.

10 Jun 2019, 22:40

#1 is a syntax error (missing sub-expression/operand), though the program might not be handling it correctly.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: [a103] fat arrow - no expr and global var ref.

12 Jun 2019, 03:42

yes, I only realised my mistake after I got the debug error, it wasn't a typo though, I had extrapolated my thought of

Code: Select all

f() => expr
being equivalent to

Code: Select all

f(){
	; global if not nested
	return expr
}
into thinking expr was optional for f()=>, beacuse it is for f(){return}. If possible, I think it would be a pleasing symmetry if expr was optional. Certainly no big deal either way though.

Cheers.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 54 guests