Re: for-loops and subrange types

Jonas Maebe <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
On 27 Apr 2013, at 00:03, [email protected] wrote:

> This compatibility requirement seems to imply that the control variable need not be an integer type.  Does this mean that
>  
>     Var  letter: char;
>  
>     for  letter := 'A' to 'Z'  do
>  
> is legitimate, or that the definers of the language expected that might eventually be allowed?

It certainly is valid. The same goes for boolean and enumeration types.


Jonas

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.