On the Smalltalk IDE (Squeak, VisualWorks, etc.), How can you go from the message code you are working on to check for another?

In every IDE that I have tried so far, if I already partially wrote a message and you need to look at the code of another, the browser asks me if I want to save. But if I say that I want to save, it actually tries to compile / syntax check the code and refuses to save if it fails. The only way to view the source of another message seems to say no to save and erase everything. How can I look at another class by accident or save the code I'm working with while working on something that might not be building right now?

+4
source share
3 answers

There is no easy way to do this yet. The two easiest options are:

  • Make the current method syntactically correct and save it.
  • Open another browser. If you want to see a class or method that is in your current code, you can choose cmd + or use "view it", "developers", shortcuts that open another window.

also in You can use GTSpotter to quickly find what you are looking for and view its source code.

+5
source

Smalltalk - . . Smalltalk . (Nautilus) , . , .

/ , / . .

, , Smalltalk. , .

+6

" , , , ", .

, - . . , , .

, , , . - - - .

: " , , "

, , .

- , , , - - - , , . . .

(, , ,   - ,
  , ,   - - , .
  . )

, .

teensy, DUMB AS A POST editor,
. - ,
, .

,

,

(   , ).

, .
, ,
, .

,

 "Hey - want to save this first?" 

:

"
  Hey - I can't imagine any circumstance where it is OK,
  in pursuit of any agenda, to throw away the coder work
  against their will.

  So listen up, coder.

  You want to save this first?
"

.
- .
Conundrum.

-! .
.

- .
.
, .

" Thanks.  Good catch.
  Yes, I know - can't though.
  I need to change contexts.
  You stay right here.
  And give me another context
  to go wandering about in.
  please.
"

Soon, I hope they start talking.

0
source

Source: https://habr.com/ru/post/1598920/


All Articles