[Cuis] ProfStef port fix for 4.1 (was Re: Hi)

Paolo paolo_montrasi at yahoo.it
Mon Jan 7 15:49:03 CST 2013


Thank you Juan, I will try your suggestions.
ciao

Paolo

Il giorno 02/gen/2013, alle ore 14:58, Juan Vuletich <juan at jvuletich.org> ha scritto:

> Hi Paolo,
> 
> Paolo wrote:
>> Happy New Year!! Just back from holiday and lots of messages to read!   
> 
> Yes, there's a lot of activity and discussion recently :)
> 
>> I should have fixes for ProfStef port I can upload but I suspect the fix is too ugly and not safe : what is currently failing in 4.1 is the World global instance that appears to be missing, I am willing to find a better solution than "PasteUpMorph allInstances at: 1" .
>> Can someone suggest a more appropriate approach to get the current World instance in 4.1?
>> Many thanks
>> 
>> Paolo
>>  
> 
> The problem with the global is that it means there can only be a World. I'd like to raise that restriction. Maybe, some time, we'll have various worlds, on different Displays or host windows, or even on different computers on a network.
> 
> So, what to do when you just need the world? In Cuis 4.1, any morph that is in a world can answer #world. It will be nil if the morph is not in any world. In addition, any object can answer #runningWorld. This method answers a world _only_ if called in the same process that is running the Morphic world. Both this accessors will work in an image with multiple worlds (provided that each world is run by a different process). If none of them serves you, then we need something else. Ideas are welcome!
> 
> Cheers,
> Juan Vuletich
> 
>> Il giorno 28/mag/2012, alle ore 01:10, Germán Arduino <garduino at gmail.com> ha scritto:
>> 
>>  
>>> Nice job!
>>> 
>>> And welcome to Cuis world :)
>>> 
>>> 2012/5/27 Paolo <paolo_montrasi at yahoo.it>:
>>>    
>>>> Hi all, I am a curious hobby coder that fell in love with smalltalk a while ago. I find Cuis the preferred smalltalk for learning and exploration because of its size and good looking gui ... I love Themes ;-)
>>>> Despite of the Cuis code quality I have still to understand Cuis Morphic therefore I have started to port ProfStef and published the packages in
>>>> 
>>>> https://github.com/pmon/Cuis-ProfStef
>>>> 
>>>> It works and pass all tests but code can be better (it is always the case with my code!) so please do not hesitate to criticize.
>>>> 
>>>> Paolo
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> Cuis at jvuletich.org
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>      
>>> _______________________________________________
>>> Cuis mailing list
>>> Cuis at jvuletich.org
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>    
>> 
>> 
>> _______________________________________________
>> Cuis mailing list
>> Cuis at jvuletich.org
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>> 
>> 
>>  
> 
> 
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org





More information about the Cuis mailing list