[IDEA] 'buildNewMethods' Preference

Ali Chamas alichamas at yahoo.com
Wed Nov 24 23:34:14 UTC 1999


Hi,

 When Squeak accepts a freshly coded method, and it
comes across a method name which you've typed which is
undefined, it throws up a menu with some suggestions
for an existing method, or a cancel. It would be great
to have an extra key in the Preferences which was
called 'buildNewMethods' (or something), and if set to
true, would mean that any undefined methods you type
in as you're coding would be auto-built for you upon
accepting the new code. Even if the preference was set
to false, it could still be an option of the methods
menu which pops up after accepting a new method.

Consider coding away, and you wrote:

| foo |
foo _ self aMethodIJustThoughtOf.

When you accept this method, #aMethodIJustThoughtOf
would be created (with the usual "^ self" minimal) in
the current methods category (or maybe a new category
called 'Other'), and then a) you know that the code
doesn't break, b) you're not interupted by a
correction menu for something which was quite
intentional.
I'm sure this would be a no-brainer, and would only
take a tiny amount of added code to the Squeak image
to create a really handy addition to Squeaks code tool
set. Unfortunately, i don't know enough about the
where or what to do it...any volunteers?

Cheers, and thanks.
Ali.
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com





More information about the Squeak-dev mailing list