Oxygen Basic

Programming => Bugs & Feature Requests => Topic started by: Brian Alvarez on August 18, 2019, 09:38:32 PM

Title: DECLARE issue.
Post by: Brian Alvarez on August 18, 2019, 09:38:32 PM
 No big deal... Removing the byval, or swapping the byval after datatype and it works fine.
But since functions work fine with byval before datatype, the DECLARE may confuse new
users.

Code: [Select]
DECLARE FUNCTION SomeFunction(byval int hm, byval string v) as string

print SomeFunction(1, "")

FUNCTION SomeFunction(byval int hm, byval string v) as string
    return "ok"
end function

Output:
Code: [Select]
ERROR: ERROR: parameters mismatch for procedure somefunction
params given : #long#string@00

OPTIONS:
somefunction(int,int,string,string) returns string


WORD: ""
LINE: 923
FILE: "main source
Title: Re: DECLARE issue.
Post by: Charles Pegge on August 19, 2019, 06:32:41 AM
Thanks Brian.

This will be fixed in 0.2.7