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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:31:55+00:00 2026-05-11T16:31:55+00:00

Question: Do you have any suggestion for better names for these functions? Since newpath

  • 0

Question: Do you have any suggestion for better names for these functions?

Since newpath and stroke causes the current point to become undefined I usually define procedures like

/new_path     { currentpoint newpath moveto             } bind def
/close_stroke { currentpoint closepath stroke moveto    } bind def

However these names are really examples of How to write unmaintainable code, and I would rather like to call them something else but cannot come up with any good names (other than maybe something like newpath_without_undefining_currentpoint and then the benefit of using a procedure is more or less gone).

Searching for existing usage only came up with the following in pdf_ops.ps from ghostscript:

/tn { currentpoint newpath moveto } bdef % Obsolete, never used.

and tn is not exactly a better name.

Edit:
What I mean by having unmaintainable characteristics is that I end up with newpath
and new_path, both doing the same thing but slightly differently and there is nothing in the names giving anything hints about anything. I know that identifiers often are kept short to save space, but this is not an issue for my hand written files.

  • 1 1 Answer
  • 1 View
  • 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-11T16:31:56+00:00Added an answer on May 11, 2026 at 4:31 pm

    How about using /beginpath (or /startpath) and /completepath?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry about the extremely vague question title (any suggestions for improvements welcome) I have
Do you have any experience about this question? I have currently 1900 MySQL databases
This question is just for a sake of knowledge. I don't have any practical
Firstly, I do not have any malicious intent out of this question. I would
I have a question considering a program that stimulates a stack (not using any
I have a noobish question for any graphics programmer. I am confused how some
I have seen this question: Are there any decent UI components for touch screen
I have not been able to find any definitive answers to this question: Can
Hey just a quick question for any experts out there. I have a site
Hey guys, one more quick question for any experts out there. I have a

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.