#747 [bug] Range is not serializable

ivan Wed 16 Sep 2009

Sys.out.writeObj(0..5)

gives an output:

sys::IOErr: Not serializable: sys::Range
  fanx.serial.ObjEncoder.writeObj (ObjEncoder.java:97)
  fan.sys.OutStream.writeObj (OutStream.java:241)
  fan.sys.OutStream.writeObj (OutStream.java:238)
  Program_0::Program.main (...)

Looks like Range is neither @simple nor @serializable

brian Wed 16 Sep 2009

fixed - I made Range a simple and added a fromStr method

changeset

qualidafial Wed 16 Sep 2009

Adding fromStr is good, but I was kind of hoping that range literals would be added to the serialization syntax.

brian Wed 16 Sep 2009

Adding fromStr is good, but I was kind of hoping that range literals would be added to the serialization syntax.

Although they are useful as a first class programming construct, I can't really think of a use case where I'd want to use them in a persistent data structure which would warrant first class serialization treatment.

Login or Signup to reply.