From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!nslave.kpnqwest.net!nloc2.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader3.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Writing CLOS objects to a file portably? References: <6uBU7.5485$zX1.7326208@typhoon.ne.mediaone.net> Mail-Copies-To: never From: Erik Naggum Message-ID: <3217992151071959@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 22 Dec 2001 06:42:32 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader3.kpnqwest.net 1009003352 193.71.66.49 (Sat, 22 Dec 2001 07:42:32 MET) NNTP-Posting-Date: Sat, 22 Dec 2001 07:42:32 MET Xref: archiver1.google.com comp.lang.lisp:22905 * Kevin Rosenberg | You could you use the function array-element-type to retrieve the | specialized element type. The element-type could be stored and then | loaded to recreate the array. The only problem I see is the ANSI | standard leaves the value of array-element-type as | implementation-dependent. So, you might get some supertype of the | element-type. Yes, this might be little worrying. Except for the predefined types bitvector and string, we rely on commonality of implementations, but one could imagine a situation where implementations A and B were such that they had no common types of specialized arrays and shipping data back and forth between them would be like calling upgraded-array-element-type on each implementation with the result from the other, converging on t as the element-type. To avoid this problem, you would have to store the intended element-type, not the actual element-type. /// -- The past is not more important than the future, despite what your culture has taught you. Your future observations, conclusions, and beliefs are more important to you than those in your past ever will be. The world is changing so fast the balance between the past and the future has shifted.