Box() should be renamed to Rectangle()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7591
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Box() should be renamed to Rectangle()

Post by infratec »

Since PB has more and more 3D commands, Box() should be renamed to Rectangle().
A box has 3 dimensions not 2 :wink:

Yes, a significant change.
Many codes to be changed.
But it makes sense (at least for me)

Maybe at a major release number change (5 to 6)

Bernd
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Box() should be renamed to Rectangle()

Post by IdeasVacuum »

Couldn't the 3D version simply be named Box3d()? That would prevent existing code being broken?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Box() should be renamed to Rectangle()

Post by DarkDragon »

How about declaring Box as deprecated?
bye,
Daniel
marc_256
Addict
Addict
Posts: 837
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: Box() should be renamed to Rectangle()

Post by marc_256 »

Since PB has more and more 3D commands, Box() should be renamed to Rectangle().
A box has 3 dimensions not 2 :wink:

Yes, a significant change.
Many codes to be changed.
But it makes sense (at least for me)

Maybe at a major release number change (5 to 6)

Bernd
Yes a lot of work to change all my work.
But, you are write, Rectangle() is a good 2D drawing solution for me.
And Box() for 3D drawing.


Marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Post Reply