Author Topic: DECLARE issue.  (Read 1003 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Guest
DECLARE issue.
« 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

Charles Pegge

  • Guest
Re: DECLARE issue.
« Reply #1 on: August 19, 2019, 06:32:41 AM »
Thanks Brian.

This will be fixed in 0.2.7