[Cuis-dev] Autocomplete support for previous binary message send

Hernan Wilkinson hernan.wilkinson at 10pines.com
Sun Oct 27 21:35:47 PDT 2019


Hi,
 currently the autocomplete does not handle correctly collaborations like
this one:
 1 = 3 if  <--- only ifNil: and the like are shown as valid, while ifTrue:
will be shown in blue (possible invalid).

 The reason is that it does not handle correctly the fact that you could
send unary and binary messages to 3 or keyword messages to the return type
of #= when sent to 1 (that is, Boolean).
 Another example is:
'a', Utilities change <-- changeStamp will not be shown as valid.

 The attached .cs files fixed that problem.
 Sadly, without LiveTyping the fix will not be notice but in some cases
like the previous example. With LiveTyping the shown messages will be the
unary and binary for the las receiver and the keyword messages of the
return type of the previous binary message. So, in the first example,
#ifTrue: and the like will be shown as valid.

 Cheers!
 Hernan


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20191028/3da62373/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3937-ShowOnlyUnaryAndBinary-HernanWilkinson-2019Oct28-01h00m-HAW.1.cs.st
Type: application/octet-stream
Size: 431 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20191028/3da62373/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3936-AutoCompleteRecognitionOfBinaryMessageSend-HernanWilkinson-2019Oct27-00h56m-HAW.1.cs.st
Type: application/octet-stream
Size: 38067 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20191028/3da62373/attachment-0003.obj>


More information about the Cuis-dev mailing list