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 8807059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:16:55+00:00 2026-06-14T02:16:55+00:00

Within a proc can you get the proc name (without hardcoding it)? e.g. proc

  • 0

Within a proc can you get the proc name (without hardcoding it)? e.g.

proc my_proc { some_arg } {
    puts "entering proc [some way of getting proc name]"
}
  • 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-06-14T02:16:56+00:00Added an answer on June 14, 2026 at 2:16 am

    Of course you can!

    Use info level command:

    proc my_proc { some_arg } {
        puts "entering proc [lindex [info level 0] 0]"
    }
    

    and you get exactly what you want

    entering proc my_proc
    

    Another way is to use info frame, which gives a dictionary with some other info, and read the proc key:

    proc my_proc { some_arg } {
        puts "entering proc [dict get [info frame 0] proc]"
    }
    

    this time, you’ll get the fully qualified proc name:

    entering proc ::my_proc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Linux, an application can easily get its absolute path by querying /proc/self/exe .
Is there a way to get a true proc from a method in Ruby?
Within Google Spreadsheets, how can I retrieve the max and min values of a
Is it possible to execute a proc within the context of another object? I
Happy Monday o/ I'm looking to do the following within a stored proc select
You can specify an MTD device by name on the kernel command line root=mtd:name
I need to get the memory usage of the current process in C. Can
I'm trying to get Assetic to run within Symfony 2.0.11 in order to use
http://developer.android.com/guide/topics/manifest/service-element.html#proc What are the differences? If the name assigned to this attribute begins with
I have a wrapper procedure(proc_main) that calls some procedures within. create or replace Procedure

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.