very strange error with do: !!!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

very strange error with do: !!!

Nicolas Anquetil
How is this possible?



aCollection is an array with 1 element (an AdaParameter ...)
but each in the do: block contains nil (so the add: gives a DNU) !?!?!?

I have no idea how this can be possible

Any clue

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: very strange error with do: !!!

Guillaume Larcheveque
can you show one step above in the stack because your problem is in the #add: of FMMultivalue link

2015-08-14 16:26 GMT+02:00 Nicolas Anquetil <[hidden email]>:
How is this possible?



aCollection is an array with 1 element (an AdaParameter ...)
but each in the do: block contains nil (so the add: gives a DNU) !?!?!?

I have no idea how this can be possible

Any clue

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Guillaume Larcheveque


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: very strange error with do: !!!

Nicolas Anquetil

this is the normal FMMultiValueLink>>add: anElement

    anElement perform: opposite with: owner.
    (values includes: anElement) not ifTrue: [
        values add: anElement ].
    ^anElement


it fails because anElement is nil (because each was nil in previous step)

nicolas

On 14/08/2015 11:31, Guillaume Larcheveque wrote:
can you show one step above in the stack because your problem is in the #add: of FMMultivalue link

2015-08-14 16:26 GMT+02:00 Nicolas Anquetil <[hidden email]>:
How is this possible?



aCollection is an array with 1 element (an AdaParameter ...)
but each in the do: block contains nil (so the add: gives a DNU) !?!?!?

I have no idea how this can be possible

Any clue

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Guillaume Larcheveque



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: very strange error with do: !!!

Nicolas Anquetil

after investigation, the problem seems to lie in a complicated scenario where I ended up modifying the list that I was iterating on.

nicolas

On 14/08/2015 11:53, Nicolas Anquetil wrote:

this is the normal FMMultiValueLink>>add: anElement

    anElement perform: opposite with: owner.
    (values includes: anElement) not ifTrue: [
        values add: anElement ].
    ^anElement


it fails because anElement is nil (because each was nil in previous step)

nicolas

On 14/08/2015 11:31, Guillaume Larcheveque wrote:
can you show one step above in the stack because your problem is in the #add: of FMMultivalue link

2015-08-14 16:26 GMT+02:00 Nicolas Anquetil <[hidden email]>:
How is this possible?



aCollection is an array with 1 element (an AdaParameter ...)
but each in the do: block contains nil (so the add: gives a DNU) !?!?!?

I have no idea how this can be possible

Any clue

nicolas

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Guillaume Larcheveque



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev