2017-06-08 6:00 GMT+02:00 Sean P. DeNigris <sean@clipperadams.com>:
HilaireFernandes wrote
I made another attempt to persist this time with filetree://. The net result is the same, the Traits logic is lost in the classes using the Traits: all traits methods are duplicated !!
I just got burned by this in ##50768. Methods inherited from traits were saved as part of the package containing the extended class, as well as the package containing the Trait itself. Ugh. Was this ever fixed by Pharo 6?
yes, it should. See issue 19938 <https://pharo.fogbugz.com/f/cases/19938/Traits-methods-flattened> Traits methods flattened (now in Pharo 60466 ) 19974 <https://pharo.fogbugz.com/f/cases/19974/backport-Traits-methods-flattened-ca...> backport Traits methods flattened (case 19938) (now in Pharo 50772 ) But AFAIK the bug, that new trait methotds are put into the "RPackage" of the trait that is "using" this trait , still exists. We only reject this entities when building the mc-package
----- Cheers, Sean -- View this message in context: http://forum.world.st/Traits-method-flatten- tp4941799p4950378.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.