FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   Option Base 1
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Option Base 1  (Read 2174 times)
Igorius

WWW
Option Base 1
« on: Oct 24th, 2004, 7:19pm »

Hi there,
 
Would you consider some kind of 'Option Base 1' expression as a good idea ?
This is used in VB so that when you create an array, the pointer starts from 1 and not from 0.
For example, when writing:
  Option Base 1;
  myObject = new Objects [3];
it creates myObject[1], myObject[2] and myObject[3] and not 0, 1 and 2.
This looks like a minor improvment but helps a lot when you have multiple classes and subclasses.
 
Regards,
 
Igorius
 
fry


WWW
Re: Option Base 1
« Reply #1 on: Oct 24th, 2004, 11:03pm »

hm, it would require a bit more underneath-work to make it happen, so probably not likely to be implemented.  
 
it's an interesting idea (for our audience) but while initially more intuitive, option base 1 can be kind of a mess with the way that most software works.
« Last Edit: Oct 24th, 2004, 11:05pm by fry »  
Pages: 1 

« Previous topic | Next topic »