Login  Register

Strange behaviour with traits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Strange behaviour with traits

HilaireFernandes
1396 posts
Hi,

I have noted somehow that some of my traits get altered by the Pharo
(Nautilus, source code import, Trait system?):

I have traits of trait, and some got inherited methods turned as trait
methods (duplicated from the parent trait).

Any one seen strange unreliable behaviour with traits?

Hilaire


--
Dr. Geo
http://drgeo.eu


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Strange behaviour with traits

stepharo
5159 posts
Really few people used them deeply like that. So you may have found a bug.


Le 23/4/16 17:08, Hilaire a écrit :

> Hi,
>
> I have noted somehow that some of my traits get altered by the Pharo
> (Nautilus, source code import, Trait system?):
>
> I have traits of trait, and some got inherited methods turned as trait
> methods (duplicated from the parent trait).
>
> Any one seen strange unreliable behaviour with traits?
>
> Hilaire
>
>


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Strange behaviour with traits

HilaireFernandes
1396 posts
I am tempted to think the problem show up when migrating from 3.0 to
4.0. So it could be related to Monticello.
I will have the opportunity to come back to this problem later, it
should be easy to identify the cause.
It was really painful to manually remove the duplicated trait methods.

Hilaire

Le 24/04/2016 09:38, stepharo a écrit :
> Really few people used them deeply like that. So you may have found a bug.

--
Dr. Geo
http://drgeo.eu


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Strange behaviour with traits

Nicolai Hess-3-2
935 posts


2016-04-24 10:33 GMT+02:00 Hilaire <[hidden email]>:
I am tempted to think the problem show up when migrating from 3.0 to
4.0. So it could be related to Monticello.
I will have the opportunity to come back to this problem later, it
should be easy to identify the cause.
It was really painful to manually remove the duplicated trait methods.

Hi Hilaire,

I guess this is something in DrGeo, can you point me to the class / triat or package that includes this
traits chain. I 'll try to reproduce this.

 

Hilaire

Le 24/04/2016 09:38, stepharo a écrit :
> Really few people used them deeply like that. So you may have found a bug.

--
Dr. Geo
http://drgeo.eu



Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Strange behaviour with traits

HilaireFernandes
1396 posts
Hi Nicolai,

It is not in DrGeo.
There is no use of Trait in Dr. Geo so far, although it is possible to
imagine good use of it.

Hilaire

Le 24/04/2016 11:48, Nicolai Hess a écrit :
> Hi Hilaire,
>
> I guess this is something in DrGeo, can you point me to the class /
> triat or package that includes this
> traits chain. I 'll try to reproduce this.

--
Dr. Geo
http://drgeo.eu