Loading ...
Sorry, an error occurred while loading the content.

Re: [jasspa] by the way tags

Expand Messages
  • Deak, Ferenc
    My problem is not the global %tag-stack variable, but the usage of set-position where I use global postions from 240 to 255. It would be better to create a
    Message 1 of 3 , Jan 16, 2006
    View Source
    • 0 Attachment
      My problem is not the global %tag-stack variable, but the usage of
      set-position where I use global postions from 240 to 255.
      It would be better to create a real stack abstraction from a list.
      Is there something similar in Jasspa macros?

      On Mon, 16 Jan 2006 06:31:51 -0500
      "Phillips, Steven" <sphillips@...> wrote:

      > Try using a command variable such as '.push-position.stack' e.g.
      >
      > define-macro push-position
      > !if &les .push-position.stack 255
      > set-position &itoa &pinc .push-position.stack 1
      > !else
      > ml-write "Tag stack full!"
      > !endif
      > !emacro
      >
      > define-macro pop-position
      > !if &gre .push-position.stack 240
      > goto-position &itoa &dec .push-position.stack 1
      > !else
      > ml-write "Tag stack empty!"
      > !endif
      > !emacro
      >
      > set-variable .push-position.stack 240
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.