Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:30:28+00:00 2026-05-23T02:30:28+00:00

how can I look at class / message code from within the GST command

  • 0

how can I look at class / message code from within the GST command line interface?
I only know the #inspect message, but this shows only a definition or summary of the object, not the code.

Thank you 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:30:29+00:00Added an answer on May 23, 2026 at 2:30 am

    You can use the “methodSourceString” method, like

    st>(Object >> #printNl) methodSourceString
    'printNl [
            "Print a represention of the receiver on stdout, put a new line
             the Transcript (stdout the GUI is not active)"
    
            <category: ''printing''>
            Transcript showCr: self printString
        ]'
    

    However, the string will be printed with double quotes, which can be inconvenient for non-trivial code.

    It’s often simpler to just use a text editor, because almost always classes are contained in a single file. You can query the file name from the REPL, too:

    st> Object methodDictionary anyOne methodSourceCode file
    <File /usr/share/smalltalk/kernel/Object.st>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i'v look through the WMI class... but none can help me in getting
I can look up the remote interface of an EJB3 from a Glassfish 2.1
I know you can look at the row.count or tables.count, but are there other
Is there a command, or a set of tables I can look at to
Please look at the following code: #include <iostream> using namespace std; class A {
My code can see the non-public members, but not the public ones. Why? FieldInfo[]
Quote from: http://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx "Invoking an event can only be done from within the class
Look, I know we should move on and install the newest php already. But
I have a program that (amongst other things) has a command line interface that
I have the following code from apache's svn. As you can see this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.