Oxygen Basic

Programming => Bugs & Feature Requests => Topic started by: Brian Alvarez on July 28, 2019, 06:39:45 PM

Title: Default params not available
Post by: Brian Alvarez on July 28, 2019, 06:39:45 PM

This fails:
Code: [Select]
function abc(int i) as long

end function

INT a = abc(1 = 1)

Complains about this (repeated error word):
Code: [Select]
ERROR: ERROR: Default Params not available
WORD: abc
LINE: 214
FILE: "main source

This works.
Code: [Select]
function abc(int i) as long

end function

INT a = abc((1 = 1))
Title: Re: Default params not available
Post by: Charles Pegge on July 29, 2019, 12:53:46 AM
Hi Brian,

Syntax conflict with default param assignments. But o2 could allow 1==1 by testing for it.