cormas icon indicating copy to clipboard operation
cormas copied to clipboard

Shoud we allow beeing able to launch several models at the same time in Cormas for Pharo?

Open nbecu opened this issue 10 years ago • 1 comments

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?

nbecu avatar May 29 '15 08:05 nbecu

I think first, we should implement a real singleton, because at the moment we duplicate code at instance and class side.

SergeStinckwich avatar Jun 10 '20 15:06 SergeStinckwich