Hi
I was reading
MooseElement>>mooseID "Returns an unique identifier of this entity. This method is mandatory, and must return an Integer that unqiuely identifies this entity within the entire Moose environ- ment. The return value must not be nil, and must never change." nil = mooseID ifTrue: [mooseID := MooseModel freshID]. ^mooseID
and I wonder why this is MooseModel freshID
since freshID is only implemented on
MooseElement class>>freshID
Stef
does anybody know that? doru?
Stef
On Sep 30, 2008, at 7:12 PM, stéphane ducasse wrote:
Hi
I was reading
MooseElement>>mooseID "Returns an unique identifier of this entity. This method is mandatory, and must return an Integer that unqiuely identifies this entity within the entire Moose environ- ment. The return value must not be nil, and must never change."
nil = mooseID ifTrue: [mooseID := MooseModel freshID]. ^mooseID
and I wonder why this is MooseModel freshID
since freshID is only implemented on
MooseElement class>>freshID
Stef _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
The reason is that the method used to be in MooseModel and then got pushed up :).
Doru
On Oct 9, 2008, at 7:57 PM, Stéphane Ducasse wrote:
does anybody know that? doru?
Stef
On Sep 30, 2008, at 7:12 PM, stéphane ducasse wrote:
Hi
I was reading
MooseElement>>mooseID "Returns an unique identifier of this entity. This method is mandatory, and must return an Integer that unqiuely identifies this entity within the entire Moose environ- ment. The return value must not be nil, and must never change."
nil = mooseID ifTrue: [mooseID := MooseModel freshID]. ^mooseID
and I wonder why this is MooseModel freshID
since freshID is only implemented on
MooseElement class>>freshID
Stef _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"No matter how many recipes we'll know, we'll still value a chef."
Doru
another question do you know if all the mooseEntity should have an mooseID that is not nil? Because with my smalltalk importer I have some of them that are nil.
Stef
On Oct 9, 2008, at 8:35 PM, Tudor Girba wrote:
The reason is that the method used to be in MooseModel and then got pushed up :).
Doru
On Oct 9, 2008, at 7:57 PM, Stéphane Ducasse wrote:
does anybody know that? doru?
Stef
On Sep 30, 2008, at 7:12 PM, stéphane ducasse wrote:
Hi
I was reading
MooseElement>>mooseID "Returns an unique identifier of this entity. This method is mandatory, and must return an Integer that unqiuely identifies this entity within the entire Moose environ- ment. The return value must not be nil, and must never change."
nil = mooseID ifTrue: [mooseID := MooseModel freshID]. ^mooseID
and I wonder why this is MooseModel freshID
since freshID is only implemented on
MooseElement class>>freshID
Stef _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"No matter how many recipes we'll know, we'll still value a chef."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Stef,
The mooseID variable can be nil, but I do not see how calling mooseID can get nil because it's a lazy initialization.
Cheers, Doru
On Oct 9, 2008, at 9:14 PM, Stéphane Ducasse wrote:
Doru
another question do you know if all the mooseEntity should have an mooseID that is not nil? Because with my smalltalk importer I have some of them that are nil.
Stef
On Oct 9, 2008, at 8:35 PM, Tudor Girba wrote:
The reason is that the method used to be in MooseModel and then got pushed up :).
Doru
On Oct 9, 2008, at 7:57 PM, Stéphane Ducasse wrote:
does anybody know that? doru?
Stef
On Sep 30, 2008, at 7:12 PM, stéphane ducasse wrote:
Hi
I was reading
MooseElement>>mooseID "Returns an unique identifier of this entity. This method is mandatory, and must return an Integer that unqiuely identifies this entity within the entire Moose environ- ment. The return value must not be nil, and must never change."
nil = mooseID ifTrue: [mooseID := MooseModel freshID]. ^mooseID
and I wonder why this is MooseModel freshID
since freshID is only implemented on
MooseElement class>>freshID
Stef _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"No matter how many recipes we'll know, we'll still value a chef."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Every thing has its own flow."