[Cuis-dev] What is the meaning of "::" in code examples ?
Jon Hylands
jhylands at gmail.com
Thu Mar 9 08:15:59 PST 2023
According to this page:
https://cuis-smalltalk.github.io/TheCuisBook/Summary-of-Syntax.html
Double-colon sends the message to the result of the previous expression. I
would guess that would make it functionally equivalent to putting the
previous expression in parens.
So:
lay1 beRow :: borderWidth: 1 :: borderColor: (Color black) .
would be the same as:
((lay1 beRow) borderWidth: 1) borderColor: (Color black) .
Unless I'm missing something...
- Jon
On Thu, 9 Mar 2023 at 11:08, Alexandre Rousseau via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> For example. per
> https://github.com/nmingotti/The-Cuis-CookBook/wiki/Introduction-to-morphs-Layout
> , I see this code:
>
> lay1 beRow :: borderWidth: 1 :: borderColor: (Color black) .
>
> I am assuming it is the same as ";" but cannot find documentation to
> this effect.
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230309/5e89b9c0/attachment.htm>
More information about the Cuis-dev
mailing list