[Pharo-dev] Opal hook?

Clément Bera bera.clement at gmail.com
Wed Dec 4 16:02:00 EST 2013

It didn't halt on your machine because you didn't copy and paste the code
that halts (i guess I wrote too much code in the mail so it was not clear).
You copied the code that I explicitly said that doesn't halt because the
error is raised at compilation time.

This code halts (copy, paste and run it you will see):

[ OpalCompiler new evaluate: 'AnUnknownClass subclass: #Adaptor1Example
        instanceVariableNames: ''customers accountID address name
        classVariableNames: ''''
        poolDictionaries: ''''
        category: ''Examples-Cookbook''' ] on: OCSemanticWarning do: [ :e |
e halt ]

We can discuss this another day when you have time because seemingly my
mail was not clear (you said you couldn't trap the semantic warning). Now
I'm really sick today so we can discuss friday or next week.

2013/12/4 Stéphane Ducasse <stephane.ducasse at inria.fr>

> >> Ok I will check something on UndefinedObject to start with.
> >> Then it would be fun to prototype a kind of strategy hiearchy on the
> side (extracted from also) behavior of OCSemanticsError
> >> It was nice to see it and since now I'm ok to have a look at the
> compiler code it was interesting.
> >>
> >
> > The current design is motivated mostly by backward compatibility, not
> anything else.
> I see :)
> I would really to see an headless, interactive and scriptable scenarios to
> be exercised. So this is good it will get better :)
> Stef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131204/ea3fd5ed/attachment-0002.html>

More information about the Pharo-dev mailing list