Does anyone know if it's possible to write a recursive function in CelX scripts. I'd like to write a little script to reverse the order of bookmarks in favorites.cel.
Best way to do this would be to read each of the items in the file and write them back out recursively. (Might have to create a duplicate of the file first).
Or even better, someone could write this in C++ and include it as a permanent feature in the next release! (ie. Sort order option on the Bookmarks menu)
Any volunteers??
Recursion and file-IO in CelX ???
-
Topic authorChuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Recursion and file-IO in CelX ???
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-
Topic authorChuft-Captain
- Posts: 1779
- Joined: 18.12.2005
- With us: 18 years 11 months
Thanks Clive,
I thought I might do this if others might find it useful, but at the moment the results of my poll: http://celestiaproject.net/forum/viewtopic.php ... highlight= suggest not. 4 votes from 210 views. (Or maybe it's just typical american voting apathy )
Might get around to this one day, but bigger fish to fry, so in the meantime I'll continue to edit favorites.cel as I've been doing up to now.
Thanks for the feedback though.
I thought I might do this if others might find it useful, but at the moment the results of my poll: http://celestiaproject.net/forum/viewtopic.php ... highlight= suggest not. 4 votes from 210 views. (Or maybe it's just typical american voting apathy )
Might get around to this one day, but bigger fish to fry, so in the meantime I'll continue to edit favorites.cel as I've been doing up to now.
Thanks for the feedback though.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS
-- Gerard K. O'Neill (1969)
CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS