[Squeakland] overlaps over clone does not work

Phil Firsenbaum tacmanphil at mac.com
Sun Oct 10 20:40:43 PDT 2004


Very interesting. As Scott knows, I, too, wanted to use the overlaps 
tile to respond to an object and all its siblings. Is this the 
beginning of a movement?

Phil

On Oct 8, 2004, at 3:57 AM, Scott Wallace wrote:

> Hello, Hilaire,
>
> Sorry to disappoint, but "Fish overlaps krill" tests only whether one 
> specific object, the Fish, overlaps another specific object, the 
> specific krill mentioned.
>
> We still have a strong need for features that allow the kind of 
> "group-checking" that you were hoping "overlaps" would provide.
>
> The functionality you propose could perhaps be embodied in a new kind 
> of test tile called something like "overlaps any" -- thus,
>
>     Fish overlaps any krill
>
> would be true if the Fish overlapped the explicit object mentioned, 
> krill, *or* any of its siblings.
>
> That sounds like a feature worth adding ;-)
>
> Cheers,
>
>  -- Scott
>
>
> PS:  Regarding the little-known "touchesA" -- this does indeed operate 
> on a group basis, but not by class, as you perhaps might have 
> expected, but rather the group is defined to be all "sketchMorphs" 
> (principally, these are drawings made with the Squeak painting system) 
> whose graphic (independent of any rotations) is identical to the one 
> mentioned after the touchesA tile.  This is a feature put in a long 
> time ago, I think, in support of one particular demo that it enabled, 
> but it's not in widespread use, and arguably we need something better. 
>  Perhaps the addition of an "overlaps any" would be a reasonable 
> start.
>
> If you're into looking at the source code, take a look at the comment 
> in method touchesA: in class Player for more details about this 
> unusual tile ;-)
>
>
> At 2:55 PM +0200 10/6/04, Hilaire Fernandes wrote:
>> Hello,
>>
>> I cannot get an expected result with the "overlaps" tile to make
>> overlaps test.
>>
>> I can get it work with one instance of a player 'krill', let's say:
>>
>> 'fish overlaps krill'
>>
>> however this test does not work with a clone of krill.
>>
>> I was expecting that the overlaps method was working at a class level
>> and not at an instance level. Or maybe there is something I have not
>> understand.
>>
>> Concening the toucheA I did not succeed to use it in test condition.
>>
>> Is there any coin
>>
>> --
>> CDDP des Landes
>> Ingénierie Éducative
>> 614, rue du Ruisseau - BP 401
>> 40012 Mont de Marsan Cedex
>> Tél. 05.58.75.50.10
>> http://crdp.ac-bordeaux.fr/cddp40
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland
>




More information about the Squeakland mailing list