Author Topic: Difference in syntax leads to error  (Read 897 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Guest
Difference in syntax leads to error
« on: November 29, 2018, 01:31:14 PM »
This compiles and works fine:

Code: [Select]
FUNCTION MODUL2(_arr_bstring *myarr, BYVAL TAGCTLDATA ptctldata PTR) AS INT
      ptctldata.ncolor = 1234
END FUNCTION

This doesn't compile:

Code: [Select]
FUNCTION MODUL2(_arr_bstring *myarr, BYVAL ptctldata AS TAGCTLDATA PTR) AS INT
      ptctldata.ncolor = 552100  '<--- NOT FOUND?
END FUNCTION

Code: [Select]
ERROR: Not found : ptctldata.ncolor
WORD: ptctldata.ncolor
LINE: 236
FILE: main source
PASS: 2

Is this an error or is it by design? :)

Charles Pegge

  • Guest
Re: Difference in syntax leads to error
« Reply #1 on: November 29, 2018, 06:45:40 PM »
Using mixed C-style and Basic-style terms in the prototype.

C-style expects type before varname.