groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] question regarding PIC and variable scoping


From: Dwight Aplevich
Subject: Re: [Groff] question regarding PIC and variable scoping
Date: Mon, 24 Jun 2002 13:49:14 -0400

Fixing the documentation is the sensible solution.
Adding the suggested functionality is ambiguous:
Change the example to
 A: [
         box
         x = 5
       ]
    print A.x
Now, what is the value of A.x?  Better to remove "variable or"
from the documentation and add the example as proposed.

At 11:48 PM 6/23/02 +0200, you wrote:
From: karan bhatia <address@hidden>
Subject: Re: [Groff] question regarding PIC and variable scoping
Date: Sun, 13 Feb 2000 12:02:10 -0800


[About accessing a GNU pic variable in a block from outside]

...
>
> I think we agree that the above reference implies that i can do
> something like last [].variable.  This is exactly the documentation
> i was refering to.  So either the documentation should clarify this
> important distinction between variables and labels (and take out
> "variable or") or perhaps there is a way to add that functionality?

This functionality is already available.  I've added the following to
pic.ms:

  Variables in a block can't be directly accessed from outside; they
  must be converted into a position:

    A: [
         xy = 5;
         Xy: (xy,0);
       ]
    print A.Xy.x


      Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]