OO Specs

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

OO Specs

Sean P. DeNigris
Administrator
Metacello is in the sweet-spot - I use it just rarely enough to completely forget how to use it (okay, maybe not completely, but the ins and outs of spec syntax), and just frequently enough to make that fact annoying ;-)

I started creating some classes, which I use like so:
(pSpec := MetacelloPlatformSpec forPlatform: #pharo)
    package: 'Applescript-Core' includes: 'Applescript-Platform'.

baseline := MetacelloBaseline forPackage: #Applescript.

baseline
    description: 'Split into Core and Platform packages to work on Squeak 4.x and Pharo 1.x';
    ...
    addPlatform: pSpec.

Then, I output baseline as a string, and compile:classified: it in the ConfigurationOfXxx.

My intention is to make the techniques described on the Google code page into executable objects so that:
1. I don't have to keep going back the docs
2. I keep building on what I learn about Metacello

I will upload to SqS if anyone is interested.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: OO Specs

Dale Henrichs
Sean P. DeNigris wrote:

> Metacello is in the sweet-spot - I use it just rarely enough to completely
> forget how to use it (okay, maybe not completely, but the ins and outs of
> spec syntax), and just frequently enough to make that fact annoying ;-)
>
> I started creating some classes, which I use like so:
> (pSpec := MetacelloPlatformSpec forPlatform: #pharo)
>     package: 'Applescript-Core' includes: 'Applescript-Platform'.
>
> baseline := MetacelloBaseline forPackage: #Applescript.
>
> baseline
>     description: 'Split into Core and Platform packages to work on Squeak
> 4.x and Pharo 1.x';
>     ...
>     addPlatform: pSpec.
>
> Then, I output baseline as a string, and compile:classified: it in the
> ConfigurationOfXxx.
>
> My intention is to make the techniques described on the Google code page
> into executable objects so that:
> 1. I don't have to keep going back the docs
> 2. I keep building on what I learn about Metacello
>
> I will upload to SqS if anyone is interested.

I like the idea and would like to see the code and possibly include it
it in Metacello ...

Dale
Reply | Threaded
Open this post in threaded view
|

Re: OO Specs

Sean DeNigris
On Aug 23, 12:40 pm, Dale Henrichs <[hidden email]> wrote:
> I like the idea and would like to see the code and possibly include it
> it in Metacello ...

Okay, I'll put together a sample and post a link to the SqS repo.

Sean