Hello,
In Pharo 7, Spec’s *Model classes were renamed following the pattern *Presenter, which is better. The original classes names (*Model) are still usable but their usage is deprecated in Pharo 7. I wonder if someone did a package for Pharo 6.1 that does the opposite: provide *Presenter classes in Pharo 6.1 to allow to prepare applications for the migration to Pharo 7 *but* allowing to keep them compatible with Pharo 6.1 until Pharo 7 is released (and eventually after...)? The implementation would be quite easy : create an empty subclass using the pattern *Presenter for the name for each *Model class of spec. Thanks in advance, Julien
--- Julien Delplanque Doctorant à l’Université de Lille http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, Avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40 |
ComposableModel withAllSubclasses do: [ :cls | cls subclass: ((cls name withoutSuffix: 'Model'), 'Presenter') asSymbol ] + move all the classes in Undeclared package. Haven't run it... but it should work more or less. A backport might not be a bad idea. Peter On Wed, May 30, 2018 at 2:44 PM, Julien <[hidden email]> wrote:
|
https://github.com/pharo-contributions/Spec70Compatibility
|
Cool, this is what I was looking for.
Thanks.
Julien --- Julien Delplanque Doctorant à l’Université de Lille http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, Avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40
|
Free forum by Nabble | Edit this page |