Hi all!
I think it would be great, if PureBasic had some kind of a "pickle"-lib.
I discovered "pickle" (like in "mixed pickles"), when I was playing around with Python for a few weeks now. The "pickle module" has some very powerful methods to save and restore objects/lists/arrays/lists with arrays with structures/.../ very easily!
It could save a lot of time, you must not implement your own filetype (with read and write functions) and would help, if you have a quick and dirty hack.
Mapfiles (for games), Lists (as a mini-databas) and lots of other thing could be saved and restored in the correct format!
Read mor about pickle in Python:
http://www.python.org/doc/current/lib/m ... ickle.html
http://www.python.org/doc/current/lib/node318.html
http://www.python.org/doc/current/lib/p ... ample.html
Cheers,
pickle for PureBasic
pickle for PureBasic
cheers,
bembulak
bembulak
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
-
- New User
- Posts: 7
- Joined: Wed Apr 19, 2006 10:30 pm
- Location: France
- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
Great idea, just be aware that the stored data would be relative to the program,
compiler version and platform, and not a true file format,
trying to use it as such would make you run into MSB and LSB issues,
compiler differences and more (certain savegames of various games and
text adventures made in TADS etc spring to mind).
But as a temporary storage it would be great yeah.
compiler version and platform, and not a true file format,
trying to use it as such would make you run into MSB and LSB issues,
compiler differences and more (certain savegames of various games and
text adventures made in TADS etc spring to mind).
But as a temporary storage it would be great yeah.