[alt.religion.computers] Initialization in Pascal

rang@cs.wisc.edu (Anton Rang) (01/18/90)

In article <4832@crdgw1.crd.ge.com> shane@underdog.crd.ge.com (Randall H. Shane) writes:
>In article <1990Jan17.044003.2039@world.std.com> bzs@world.std.com (Barry Shein) writes:
>] Everyone knows that Pascal has no initialization syntax.  [ ... ]
>
>The lack of a good initialization syntax is a severe disadvantage in Pascal,
>I agree.

  VMS Pascal uses a syntax which is basically a Pascal translation of
C's initialization: VAR <name> : <type> := <value> .  It translates
into either load-time or run-time initialization, just as C's does.
(Aggregate constants are also supported, so arrays and records may be
initialized this way as well.)

  It would be nice if this eventually makes it into one of the
standards....

		Anton
   
+---------------------------+------------------+-------------+
| Anton Rang (grad student) | rang@cs.wisc.edu | UW--Madison |
+---------------------------+------------------+-------------+