Project

General

Profile

Actions

Bug #367

closed

Compile error when directly calling a Procedure with more then 1 argument

Added by Jason Wroe over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
05/10/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

If you call a procedure with more then 1 argument directly there is a compile error eg :-

Procedure MyFunc[A, B]
c = A * B
End Proc[c]

Print MyFunc[2, 3]

Throws the error "Pass: 1 Cannot read property '0' of undefined as information.getOperand (information.js:425:74)

You can work round this by using the param return eg :-

Procedure MyFunc[A, B]
c = A * B
End Proc[c]

MyFunc[2, 3]
Print param

Actions

Also available in: Atom PDF