Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 6 Part 1
Date: Wed Dec 5 2001 2:13 am
Author: Fields, David C. <dcf@andrew.cmu.edu>
Subject: Re: toString() in Space

i think the Space(int) constructors were not designed for standard use, but rather are only implemented to support serialization. initializing your spaces the way you did, particularly since you do not ever call readResolve() on any of them, is bound to create some issues. Instead, if you want a white space for instance, i suggest doing it like this:

Space theSpace = Space.WHITE;

this is how we do it all throughout our program, and it works just fine.

-Dave
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
toString() in Space      Kohl, Charles M.      Wed Dec 5 2001 12:49 am       
Re: toString() in Space      Fields, David C.      Wed Dec 5 2001 2:13 am       
Re: toString() in Space      Maxim, Michael G.      Wed Dec 5 2001 2:55 am       

Back to previous screen