Powerbasic Museum 2020-B

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: James C. Fuller on May 08, 2018, 01:14:16 PM

Title: array designation
Post by: James C. Fuller on May 08, 2018, 01:14:16 PM
Charles,
  Any significant reason for both [] and () use with arrays other than to confuse old farts like me :)

James
Title: Re: array designation
Post by: Charles Pegge on May 08, 2018, 01:43:53 PM
Hi James,

Either will do.

The only place you must use square brackets is in C-style array declaration:

int a[100]

This is because o2 also supports C-style procedure declarations:

int f(..)