[squeak-dev] Is it dangerous to ignore Dangerous?

Vanessa Freudenberg vanessa at codefrau.net
Wed Aug 19 21:29:51 UTC 2020


Not sure why the methods in noteDangerous are not used. We could ask Ted,
who wrote it initially. CC'ing.

It still works because MethodFinder only tries methods understood by the
objects you give as an example. So as long as you don't try it on
"dangerous" classes it's going to be fine.

- Vanessa -

On Wed, Aug 19, 2020 at 1:22 PM karl ramberg <karlramberg at gmail.com> wrote:

> Same in Squeak 2.8.
> Dangerous is nil and not accessed.
>
> Best,
>
> Karl
>
> On Wed, Aug 19, 2020 at 9:41 PM David T. Lewis <lewis at mail.msen.com>
> wrote:
>
>> Following the removal of
>> Classbuilder>>format:variable:words:pointers:weak:
>> I had planned to remove a reference to that method (and one or two others)
>> in MethodFinder>>noteDangerous. But to my surprise, I see that the set of
>> Dangerous methods in MethodFinder is completely unused (except by a method
>> that is itself unused).
>>
>> How is this even possible? I had assumed that the Dangerous methods were
>> important to the fundamental functioning of MethodFinder, which explores
>> the system looking for methods that produce results matching some example
>> pattern. How could this possibly be working if we do not pay attention to
>> the set of methods that are too dangerous to be invoked by the method
>> finder?
>>
>> This is not a new situation, I looked at a Squeak 3.6 image and see the
>> same thing.
>>
>> Dave
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200819/e3cd8dbe/attachment.html>


More information about the Squeak-dev mailing list