started to flesh up a real log of main changes in pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

started to flesh up a real log of main changes in pharo

Stéphane Ducasse
Hi guys

some of you may find the following working document of high interest. Pay attention this is a bit draft and incomplete.

        http://code.google.com/p/pharo/wiki/ActionsInPharoOneDotThree

Stef
Reply | Threaded
Open this post in threaded view
|

Re: started to flesh up a real log of main changes in pharo

Tudor Girba-2
Nice.

Doru


On 8 Jun 2011, at 09:36, Stéphane Ducasse wrote:

> Hi guys
>
> some of you may find the following working document of high interest. Pay attention this is a bit draft and incomplete.
>
> http://code.google.com/p/pharo/wiki/ActionsInPharoOneDotThree
>
> Stef

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."




Reply | Threaded
Open this post in threaded view
|

Re: started to flesh up a real log of main changes in pharo

Mariano Martinez Peck
wow....that a large list :)

On Wed, Jun 8, 2011 at 9:48 AM, Tudor Girba <[hidden email]> wrote:
Nice.

Doru


On 8 Jun 2011, at 09:36, Stéphane Ducasse wrote:

> Hi guys
>
> some of you may find the following working document of high interest. Pay attention this is a bit draft and incomplete.
>
>       http://code.google.com/p/pharo/wiki/ActionsInPharoOneDotThree
>
> Stef

--
www.tudorgirba.com

"To lead is not to demand things, it is to make them happen."







--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: started to flesh up a real log of main changes in pharo

Igor Stasenko
In reply to this post by Stéphane Ducasse
On 8 June 2011 09:36, Stéphane Ducasse <[hidden email]> wrote:
> Hi guys
>
> some of you may find the following working document of high interest. Pay attention this is a bit draft and incomplete.
>
>        http://code.google.com/p/pharo/wiki/ActionsInPharoOneDotThree
>

>>>>>Tools are now accessed via Smalltalk tools aTool and they should be registered via .. @@igor please add something here@@

A tool at class side should implement #registerToolsOn: method.

This method will be executed automatically for all classes, when you issue
Smalltalk resetTools

If you don't want to reset all tools (to defaults) , but instead add
new tools when package installed
just send #registerToolsOn:  in #initialize method of your tool class
with 'Smalltalk tools' as argument:

SomeTool class>>initialize

self registerToolsOn: Smalltalk tools

A typical #registerToolsOn: implementation:

SomeTool class>>registerToolsOn: registry

     registry register: self as: #someTool

And to access registered tool, now you can use 'Smalltalk tools someTool' idiom.


Note, that with tools registry, you are no longer need to keep (and
implement) a singleton pattern per each tool class,
which requires it , i.e.
SomeTool default doSomething.

instead, with using registry, you can register a sole tool instance
(or class) to registry , and then just write
Smalltalk tools someTool doSomething.

This means that multiple tools now can get rid of singleton.

> Stef

--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: started to flesh up a real log of main changes in pharo

Igor Stasenko
>>>>    a new way of dealing with plugin brings in more security and flexibility @igor please add something here@@


There are two new primitives which i added to VM.

SmalltalkImage>>
loadModule: aModuleName
        "Primitive. Attempt to load a module of the given name.
        Fail if module cannot be found, or cannot be loaded,
        or failed to initialize"

        <primitive: 'primLoadModule'  module: '' error: errorCode >

And
disableModuleLoading
        "Primitive. Disable a new module loading mechanism for the rest of
current session.
        This operation is not reversible.
        Any subsequent attempts to load either external or internal module(s)
will fail"

        <primitive: 'primitiveDisableModuleLoading' module: ''>
       


--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: started to flesh up a real log of main changes in pharo

Stéphane Ducasse
igor edit the page directly :)

On Jun 8, 2011, at 12:56 PM, Igor Stasenko wrote:

>>>>>   a new way of dealing with plugin brings in more security and flexibility @igor please add something here@@
>
>
> There are two new primitives which i added to VM.
>
> SmalltalkImage>>
> loadModule: aModuleName
> "Primitive. Attempt to load a module of the given name.
> Fail if module cannot be found, or cannot be loaded,
> or failed to initialize"
>
> <primitive: 'primLoadModule'  module: '' error: errorCode >
>
> And
> disableModuleLoading
> "Primitive. Disable a new module loading mechanism for the rest of
> current session.
> This operation is not reversible.
> Any subsequent attempts to load either external or internal module(s)
> will fail"
>
> <primitive: 'primitiveDisableModuleLoading' module: ''>
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>