home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,193 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Dan Cross   
   Re: VMS Pascal article   
   03 Jan 25 18:53:23   
   
   From: arne@vajhoej.dk   
      
   On 1/3/2025 4:24 PM, Dan Cross wrote:   
   > In article <6778415e$0$708$14726298@news.sunsite.dk>,   
   > Arne Vajhøj   wrote:   
   >> On 1/3/2025 1:51 PM, Dan Cross wrote:   
   >>> In article , Arne Vajhøj     
   wrote:   
   >>>> On 1/3/2025 1:17 PM, Dan Cross wrote:   
   >>>>> In article <67781447$0$711$14726298@news.sunsite.dk>,   
   >>>>>> And also fixed in the description of VARYING further up.   
   >>>>>   
   >>>>> You should seriously mention the STRING type, though.   
   >>>>   
   >>>> I think VARYING OF CHAR is what is used most in VMS Pascal.   
   >>>   
   >>> Weird; I can't imagine why.   
   >>   
   >> I never use string (on VMS).   
   >>   
   >> $ search sys$common:[syshlp.examples.pascal]*.pas varying   
   >> $ search sys$common:[syshlp.examples.pascal]*.pas "string("   
   >>   
   >> indicate that whoever write VMS Pascal examples also prefer   
   >> varying of char over string.   
   >>   
   >> If I were to guess about why, then I believe it is historic   
   >> reasons. varying of char has been there since like forever.   
   >> string was added with ISO Pascal support later.   
   >   
   > I suspect that's close, but ISO Pascal doesn't have a 'VARYING'   
   > array type, either.   
      
   I am saying that VMS Pascal had VARYING before ISO existed. A   
   VMS specific (or DEC specific??) extension.   
      
   > I suspect you're referring to what ISO calls "Extended Pascal"   
   > (ISO 10206); ISO Pascal (ISO 7185) doesn't support a `String`   
   > type of either the VSI Pascal form or the Turbo   
   > Pascal/Delphi/FreePascal form, only manifest string literals and   
   > `packed array [1..n] of char`.   
      
   Yes, 10206.   
      
   Arne   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca