[Cuis-dev] Handy ReferenceFinder extension and a question...

Juan Vuletich juan at jvuletich.org
Wed Mar 11 11:36:48 PDT 2020


Phil,

On 3/10/2020 12:20 PM, Phil B via Cuis-dev wrote:
> Juan,
>
> On Tue, Mar 10, 2020 at 8:45 AM Juan Vuletich <juan at jvuletich.org 
> <mailto:juan at jvuletich.org>> wrote:
>
>     You say 'the literal 0 at 0 instance'.
>
>     ....
>
>     As you see being immediate, unique or a literal are three
>     different things.
>
>     The backtick syntax `0 at 0` creates a literal at compile time. But
>     there
>     is no guarantee of uniqueness. It just mimics what the compiler does
>     when it finds 'a := 1000000000000000000000000', for instance.
>
>
> Ah, then I misunderstood what you implemented.  I've been wondering 
> for a while about some oddness I've been experiencing... now I 
> understand the source of it.  I misunderstood and thought that `0 at 0` 
> resulted in a globally unique instance similar to true or #foo, not 
> 3.  That's what my original Point class>>zero proposal was going for.
>
>
>     So yes, your tool will find all `0 at 0` literals. And they are ok.
>
>
> Says you ;-)  I need globally unique instances.  No big deal, the 
> literal syntax at least greatly reduced the number of instances out 
> there.  I can use this approach as part of the solution to get it down 
> to one when I build my image.

Then take a look at how Symbol does it.

>     Cheers,
>
>     -- 
>     Juan Vuletich
>
>
> Thanks,
> Phil

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200311/4d1c7a96/attachment.htm>


More information about the Cuis-dev mailing list