Author Topic: Default params not available  (Read 661 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Hero Member
  • *****
  • Posts: 653
    • PluriBASIC
Default params not available
« 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))

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4419
    • Oxygen Basic
Re: Default params not available
« Reply #1 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.