[squeak-dev] loading one mcz depending on another

Bert Freudenberg bert at freudenbergs.de
Wed Jul 2 12:51:49 UTC 2008


Am 02.07.2008 um 14:35 schrieb Damien Cassou:

> On Wed, Jul 2, 2008 at 2:21 PM, cdrick <cdrick65 at gmail.com> wrote:
>>> On Wed, Jul 2, 2008 at 1:58 PM, cdrick <cdrick65 at gmail.com> wrote:
>>>> I need to load 2 mcz. The first need to be initialized before I  
>>>> load the second.
>>>> I did a Package-all but it doesn't work (syntax error). The load  
>>>> order
>>>> is ok, but I guess the initialization is done at the end... hence  
>>>> my
>>>> problem
>>>
>>> I don't see how a syntax error could be related to MC. Have you  
>>> tried
>>> to load Package-1 alone then Package-2?
>>
>> Yes that way it works.
>>
>> It for Prolog. In some packages they are examples in Prolog syntax
>> which need to use a different compiler. If I load all the packages,
>> I've got a syntax error as it doesn't know how to compile the  
>> "prolog"
>> methods. If I load first the compiler then packages with prolog
>> syntax, then it's ok.
>
> You might want to try with MC15, even without MCM. If you still have
> the problem, send a mail to Keith and Matthew.


IMHO that's a problem we haven't found a solution for in MC, yet.

Sometimes (as in cdrick's case) you must load two packages  
independently, because the first needs to be initialized before the  
second can load.

Sometimes, packages need to be loaded together, for example, when a  
class or method is moved from one package to the other.

Maybe packages that need to be loaded separately need to be marked?

- Bert -





More information about the Squeak-dev mailing list