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 263,745 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All   
   Re: VMS Bootcamp   
   12 Nov 25 17:24:37   
   
   From: arne@vajhoej.dk   
      
   On 11/12/2025 5:21 PM, Arne Vajhøj wrote:   
   > On 11/12/2025 5:14 PM, Arne Vajhøj wrote:   
   >> I do not see a problem with the pointer type casts. If   
   >> normal code is safe, then I think it is OK to have ways   
   >> to workaround the safeness. Sometimes it is desirable   
   >> and it is hopefully easy to identify usage of such   
   >> constructs and require extra code review of such code.   
   >   
   > Illustration:   
      
   Note that it is not tied to dynamic memory allocation.   
      
   > type   
   >     a4 = array [1..4] of integer;   
   >     pa4 = ^a4;   
   >   
   > var   
   >     ap : pa4;   
   ...>     new(ap);   
      
   could have been:   
      
   type   
       a4 = array [1..4] of integer;   
       pa4 = ^a4;   
      
   var   
       a : [volatile] a4;   
       ap : pa4;   
   ...   
       ap := address(a);   
      
   with same effect.   
      
   Arne   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca