Author Topic: SpanOf  (Read 1941 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
SpanOf
« on: August 11, 2014, 03:19:19 PM »
Deleted
« Last Edit: May 05, 2015, 11:16:58 AM by Peter »

Charles Pegge

  • Guest
Re: SpanOf
« Reply #1 on: August 11, 2014, 10:06:23 PM »
Hi Peter,

Yes, off by a factor of 10! I'll investigate.

This will dimension correctly:

sys a[] = {0,1,2,3,4,5,6,7,8,9}

or

sys a = {0,1,2,3,4,5,6,7,8,9}


Fixed: :)

http://www.oxygenbasic.org/o2zips/Oxygen.zip
« Last Edit: August 11, 2014, 10:42:07 PM by Charles Pegge »

Charles Pegge

  • Guest
Re: SpanOf
« Reply #2 on: August 12, 2014, 01:34:51 AM »
No, it only works on the original static array. You will need to pass this information to the procedure accessing the array.

Charles Pegge

  • Guest
Re: SpanOf
« Reply #3 on: August 12, 2014, 05:39:26 AM »
Alternatively, you can store size, and other information in unused elements.

negative indexbases are possible:

indexbase -1
% size 100 'span=102 :)
sys a[size] : a[-1]=size