Hans Peter Würmli wrote: > Is there a way to save a package instead of in a file as a pickle as a, say, > string of bytes as a, say, blob, in a SQL table? >
Internally, functionality to pickle something to a byte string exists, but it is not currently exposed in the library. But here is an inofficial way to access it: import "x-alice:/lib/system/UnsafeComponent" val c = Component.fromPackage(pack (val it = 666) : (val it : int)) val s = UnsafeComponent.pack_ c val c' = UnsafeComponent.unpack_ s val p = ComponentManager.eval(Url.fromString "", c') open unpack p : (val it : int) I wouldn't necessarily recommend that, though. :-) We may add more official support in future versions. Hope this helps, - Andreas _______________________________________________ alice-users mailing list [email protected] http://www.ps.uni-sb.de/mailman/listinfo/alice-users
