Whohoo! Another finding!
There is a way to retrieve a sorted dictionary already! Dictionary? Sorted? Well, that's what it seems to be...
https://github.com/OoliteProject/oolite ... y.m#L12854
I would so much like to see a unit test that verifies the list is sorted. To be run on all the operating systems we compile on.
Scripters cove
Moderators: winston, another_commander
- hiran
- Theorethicist
- Posts: 2415
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Scripters cove
Sunshine - Moonlight - Good Times - Oolite
- Wildeblood
- ---- E L I T E ----
- Posts: 2472
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Scripters cove
I think you're barking up a dead tree, hiran. If world scripts were sorted into a consistent, predictable order what good would result? I'd predict a lot of scripts named "AAA my script", etc.
- hiran
- Theorethicist
- Posts: 2415
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Scripters cove
The use case was made some posts above in this thread. I see that case legit.Wildeblood wrote: ↑Fri Oct 25, 2024 9:08 pmI think you're barking up a dead tree, hiran. If world scripts were sorted into a consistent, predictable order what good would result? I'd predict a lot of scripts named "AAA my script", etc.
What would you suggest to get around that in a meaningful way?
Be aware your example assumes everybody wants to be first. But then you forget the authors that do not care, and the authors that just want to be before a specific script but by no means the first. If all this imposes problems we can still come up with rules. Currently there is no consistent sorting so the scripts live in kind of anarchy.
Sunshine - Moonlight - Good Times - Oolite