GsQuery on array or collection ??????

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

GsQuery on array or collection ??????

GLASS mailing list
The following is NOT working:

(GsQuery fromString: 'each = ''12''' on: (Array with: '12')) asArray

This one is working:

(GsQuery fromString: 'each = ''12''' on: (Set with: '12')) asArray

WHY ? In the documentation one can read, that on: needs a collection like object ?!

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: GsQuery on array or collection ??????

GLASS mailing list

I forget: Gemstone/S 3.2.14:


Marten Feldtmann via Glass <[hidden email]> hat am 10. Mai 2016 um 11:48 geschrieben:

The following is NOT working:

(GsQuery fromString: 'each = ''12''' on: (Array with: '12')) asArray

This one is working:

(GsQuery fromString: 'each = ''12''' on: (Set with: '12')) asArray

WHY ? In the documentation one can read, that on: needs a collection like object ?!


 

_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: GsQuery on array or collection ??????

GLASS mailing list
In reply to this post by GLASS mailing list
Marten,

It looks like the docs are misleading ... GsQuery currently works only on UnorderedCollections (Sets and Bags).

It looks like if you implement _asIdentityBag in Collection, you just might be able to get things to work for you ...

Dale

On 5/10/16 2:48 AM, Marten Feldtmann via Glass wrote:
The following is NOT working:

(GsQuery fromString: 'each = ''12''' on: (Array with: '12')) asArray

This one is working:

(GsQuery fromString: 'each = ''12''' on: (Set with: '12')) asArray

WHY ? In the documentation one can read, that on: needs a collection like object ?!


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass