cormas
cormas copied to clipboard
Shoud we allow beeing able to launch several models at the same time in Cormas for Pharo?
In VW we choose to have the CormasModel class has a singleton because:
- we wanted to be able to call the instance of the current model from anywhere in the code, by using:
CormasModel currrent - having a single model open in an image was making things much more simple for implementing the distributed version of
CORMAS.
Now that we switch to Pharo, - and that for the moment a distributed version on pharo is not the priority - we can ask ourselves, should we keep CormasModel as a singleton or should we allow several model to be lauched in a same image
The floor is yours. What are your arguments in favor or one or the other option?
I think first, we should implement a real singleton, because at the moment we duplicate code at instance and class side.