🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2310

Two questions

#2310
From: Scott Meyers
Date: Fri, 02 Oct 1992 16:49
40 lines
1752 bytes
Two questions about miscellaneous languages:

1.  Regarding the language occam, I have this sample program fragment:

        WHILE TRUE
           SEQ
              PAR
                 south ! x
                 east ? sum
                 temp := a * x
              PAR
                 west ! sum + temp
                 north ? x

    All I really need to know is this:  is the language case-sensitive?  In
    particular, can "PAR" above be also written "Par", "par", etc?

2.  Some languages allow for multiple assignments as part of the same
    statement, where the semantics are that all right-hand sides are
    evaluated before any left-hand sides.  To swap x and y, then, you can
    just write this:

        x = y, y = x

    This is completely deterministic -- it's not the same as saying that
    the two assignments are carried out in parallel.

    Anyway, I've forgotten where I read about this construct (I thought it
    was CSP, but I appear to have been mistaken), and I'd like to give a
    citation for one or more languages that use it.  Obviously, the
    language that originated the construct would be nice, but I'm not that
    picky.   Anybody know what language(s) support this construct?

Thanks,

Scott


-------------------------------------------------------------------------------
What do you say to a convicted felon in Providence?  "Hello, Mr. Mayor."
Technical Details
Message-ID: <1992Oct2.164936.20520@cs.brown.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!sdm

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!sdm
From: sdm@cs.brown.edu (Scott Meyers)
Subject: Two questions
Message-ID: <1992Oct2.164936.20520@cs.brown.edu>
Sender: news@cs.brown.edu
Organization: Brown University Department of Computer Science
Date: Fri, 2 Oct 1992 16:49:36 GMT
Lines: 40