Waldek Hebisch wrote:
prasad svr wrote:
"variant record selector cannot be passed by reference".
Our software is working on below platforms and compilers
platform compiler sun sun pascal compiler vms vms pascal compiler digital unix digital unix pascal compiler windows borland delphi 7
I just checked: we allow passing variant record selector by reference in Mac Pascal mode, Borland Pascal and Borland Delphi mode.
MetroWerks CodeWarrior Pascal indeed allows it.
What Prasad wrote implies that we should allow it also in Vax Pascal and Sun Pascal modes. That means 5 dialects -- I propose that we turn it on by default and activate restriction only for ISO modes (and possibly USCD and Pascal SC -- I have no data for them).
UCSD Pascal allows it also (or at least Apple UCSD Pascal 1.3 does). The abbreviation, by the way, is UCSD, from University of California at San Diego (not USCD).
Note that the "tag field cannot be passed by reference" restriction is in the ISO 7185 standard, not in the original Jensen & Wirth User Manual and Report. See Appendix E of the ISO 7185 User Manual and Report book, third edition.
Regards,
Adriaan van Os