• Re: Stack notation

    From minforth@21:1/5 to All on Thu May 30 14:26:55 2024
    TEMP-CONVERSION ( F: celsius -- F: fahrenheit )
    should be clear enough, right?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From albert@spenarnc.xs4all.nl@21:1/5 to ruvim.pinka@gmail.com on Fri May 31 11:17:10 2024
    In article <v3a8i3$1ooo8$1@dont-email.me>,
    Ruvim <ruvim.pinka@gmail.com> wrote:
    On 2024-05-30 18:26, minforth wrote:
    TEMP-CONVERSION ( F: celsius -- F: fahrenheit )
    should be clear enough, right?

    Right, while you have not introduced subtypes of i*r.

    So in the standard stack notation it would be:

    TEMP-CONVERSION ( F: r.celsius -- r.fahrenheit )

    1. A stack-id ("F" in this case) is used once.
    2. The data type symbol "r" is used (it's defined in 12.3.1)
    3. A subscript separated by a dot from a data type symbol.

    The standard stack notation does not define any delimiter for
    subscripts, but some delimiter should be used in plain text if the
    subscript is not a number. It is convenient to use a dot as a separator.

    I don't standardizing stack notations are worth worrying about.
    The standards document has to be precise, so there worries are warranted.

    Ruvim

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat purring. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)