ScriptLoader policies

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

ScriptLoader policies

Mariano Martinez Peck
Hi folks: I am making a new package in squeaksource for Glorp (compatibility for Pharo) and I want Glorp to be easily loaded.

I would love someone could dowload pharo and do ScriptLoader loadGlorp :)

Now, the question is, can I commit such method? Or ScriptLoader is only for internal development?

Thanks!

Mariano

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Stéphane Ducasse
It would be better to have a GlorpLoader package and
GlorpLoader load  (couple)
it is more OO in the spirit.

ScriptLoader is not for public consumption.

stef
On Jun 9, 2009, at 11:25 PM, Mariano Martinez Peck wrote:

> Hi folks: I am making a new package in squeaksource for Glorp  
> (compatibility for Pharo) and I want Glorp to be easily loaded.
>
> I would love someone could dowload pharo and do ScriptLoader  
> loadGlorp :)
>
> Now, the question is, can I commit such method? Or ScriptLoader is  
> only for internal development?
>
> Thanks!
>
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Mariano Martinez Peck
Ok. I did something like that. I will then send an email with the ANN.

Thanks!

Mariano

On Tue, Jun 9, 2009 at 6:36 PM, Stéphane Ducasse <[hidden email]> wrote:
It would be better to have a GlorpLoader package and
GlorpLoader load  (couple)
it is more OO in the spirit.

ScriptLoader is not for public consumption.

stef
On Jun 9, 2009, at 11:25 PM, Mariano Martinez Peck wrote:

> Hi folks: I am making a new package in squeaksource for Glorp
> (compatibility for Pharo) and I want Glorp to be easily loaded.
>
> I would love someone could dowload pharo and do ScriptLoader
> loadGlorp :)
>
> Now, the question is, can I commit such method? Or ScriptLoader is
> only for internal development?
>
> Thanks!
>
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Damien Cassou
2009/6/10 Mariano Martinez Peck <[hidden email]>:
> Ok. I did something like that. I will then send an email with the ANN.

What about using Installer which is present in all Pharo. For example:

instClass ss
        project: 'OCompletion';
        install: 'OCLoader'.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Damien Cassou
On Wed, Jun 10, 2009 at 9:53 AM, Damien Cassou<[hidden email]> wrote:
> What about using Installer which is present in all Pharo. For example:
>
> instClass ss
>        project: 'OCompletion';
>        install: 'OCLoader'.

instClass being Installer, sorry.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Mariano Martinez Peck


On Wed, Jun 10, 2009 at 6:53 AM, Damien Cassou <[hidden email]> wrote:
On Wed, Jun 10, 2009 at 9:53 AM, Damien Cassou<[hidden email]> wrote:
> What about using Installer which is present in all Pharo. For example:
>
> instClass ss
>        project: 'OCompletion';
>        install: 'OCLoader'.

instClass being Installer, sorry.


Yes yes. I do this: "GlorpPharoLoader loadGlorp". But loadGlorp, inside, uses installer as you said :)

Thanks!

Mariano
 


--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Alexandre Bergel
In reply to this post by Mariano Martinez Peck
Hi Mariano,

Best is to have a GlorpLoader. People can then doit in a workspace:

Installer ss project: 'Glorp'; install: 'GlopLoader'.

MondrianLoader in the Mondrian package may be a good example.

Cheers,
Alexandre

On 9 Jun 2009, at 17:25, Mariano Martinez Peck wrote:

> Hi folks: I am making a new package in squeaksource for Glorp  
> (compatibility for Pharo) and I want Glorp to be easily loaded.
>
> I would love someone could dowload pharo and do ScriptLoader  
> loadGlorp :)
>
> Now, the question is, can I commit such method? Or ScriptLoader is  
> only for internal development?
>
> Thanks!
>
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ScriptLoader policies

Mariano Martinez Peck


On Wed, Jun 10, 2009 at 3:09 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Mariano,

Best is to have a GlorpLoader. People can then doit in a workspace:

Installer ss project: 'Glorp'; install: 'GlopLoader'.

That's what I did :)
 

MondrianLoader in the Mondrian package may be a good example.

Thanks for the example. But I don't understand who and when send the message "load" to MondrianLoader. Monticello does that when loading a package? I tried load was never call :(

What I did is to my GlorpLoader is to implement the class side method:

initialize
      super initialize.
      self loadGlorp.

loadGlor
      Installer ss...
      ....
 

Thanks!!!

Mariano




Cheers,
Alexandre

On 9 Jun 2009, at 17:25, Mariano Martinez Peck wrote:

> Hi folks: I am making a new package in squeaksource for Glorp
> (compatibility for Pharo) and I want Glorp to be easily loaded.
>
> I would love someone could dowload pharo and do ScriptLoader
> loadGlorp :)
>
> Now, the question is, can I commit such method? Or ScriptLoader is
> only for internal development?
>
> Thanks!
>
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project