[Implemented] #PB_Sort_<type> to equal #PB_<type>

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[Implemented] #PB_Sort_<type> to equal #PB_<type>

Post by Trond »

It would be less possibility for error if the type constants used for sorting were equal to the other type constants:

Code: Select all

#PB_Sort_Integer = #PB_Integer
#PB_Sort_String = #PB_String
#PB_Sort_Quad = #PB_Quad
etc...
I just mixed this up when trying to sort a list.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: #PB_Sort_<type> to equal #PB_<type>

Post by Seymour Clufley »

Yes, I agree.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Post Reply