I have considered making them prefab instead 

Sent from my iPhone

> On Nov 16, 2013, at 12:32 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote:
> 
> I think the conversion function is useful pedagogically to talk about
> the need to serialize, but having it just work might be expedient in
> other situations. I do not believe that they are actually
> serializable, but we could fairly easily make that change.
> 
> On Sat, Nov 16, 2013 at 10:22 AM, Matthias Felleisen
> <matth...@ccs.neu.edu> wrote:
>> 
>> Kind of. If this is about Universe programming (so that students can send 
>> messages back and forth), I have them write conversion functions:
>> 
>> (define-struct hh (cakes henries))
>> 
>> (define (hh->lists hh)
>>   (list (cakes->lists (hh-cakes hh)) (henries->lists (hh-henries hh))))
>> 
>> -- Matthias
>> 
>> 
>> 
>> 
>>> On Nov 16, 2013, at 11:57 AM, n...@cs.tufts.edu (Norman Ramsey) wrote:
>>> 
>>> A structure is defined with `define-struct` in Intermediate Student 
>>> Language.
>>> Is it serializable?   That is, can it be written and then re-read
>>> successfully with `write` and `read`?  If not, is there a way to make it so?
>>> (I have found the function `make-serialize-info` in the racket/serialize
>>> library, but the documentation relies on Racket concepts that I have not
>>> yet learned.)
>>> 
>>> 
>>> Norman
>>> ____________________
>>> Racket Users list:
>>> http://lists.racket-lang.org/users
>> 
>> 
>> ____________________
>>  Racket Users list:
>>  http://lists.racket-lang.org/users
> 
> 
> 
> -- 
> Jay McCarthy <j...@cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
> 
> "The glory of God is Intelligence" - D&C 93

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to