Mariano Martinez Peck a écrit :
> Danny: You don't have an idea of how much important this is for the 
> Pharo community. Having good documentation, tutorials and so on, is a 
> KEY aspect from my point of view. So thanks to Laurent for the 
> initiative and you for the work too.
yes!! + 1000
>
> Algernon class >> initialize
> ProfStef registerNewTutorial: self algernonTutorial.
>
> ProfStef registerNewTutorial:  aTutorial
>   self addTutorial: aTutorial
>
> or something like that...
But this kind of registration can be problematic.
Maybe a pragma could be useful here.
It gives the possibility to discover on the fly all existing tutorials 
when the ui is opened.
Something like this:

Each package can define each own tutorial entry point method like this:
AlgernonTutorial class>>MyCooooolTutorial
    <tutorial>
    bla bla bla

then with:
(PragmaCollector filter: [:pragma | pragma keyword =  'tutorial']) reset

you  get all existing methods with a <tutorial> pragma.

And no need to manage any registration/unregistration.


Cheers
Alain


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to