variable type cast

Jay Michael jmichael_ll at yahoo.com
Mon May 13 01:12:45 CEST 2013


gpc version 20070904, based on gcc-3.4.5 (mingw special)
 
     Given
          type INT16  = INTEGER  attribute( size=16 ) ;
          type WORD16 = Cardinal attribute( size=16 ) ;
          var i16 : INT16 ;
          var w16 : WORD16 ;
why does
          WORD16(I16) := W16 ;
produce "error: invalid lvalue in assignment"?

 
          
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20130512/ba3f9d8f/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jsm5.pas
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20130512/ba3f9d8f/attachment.ksh>


More information about the Gpc mailing list