[sv-bc] Is string valid data type for 'foreach' array

From: Surya Pratik Saha <spsaha_at_.....>
Date: Wed Jan 16 2008 - 22:14:23 PST
Hi,
SV 1800-2008 draft LRM defines 'foreach' array as follows:
12.7.3 The foreach loop
The foreach-loop construct specifies iteration over the elements of an array. Its argument is an identifier that designates any type of array followed by a comma-separated list of loop variables enclosed in square brack-ets.

Is 'string' type allowed as array. Is the following case valid?
module top;
    string s;
    initial begin
        foreach (s[i]) begin
        end
    end
endmodule


-- 
Regards
Surya

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Wed Jan 16 22:23:00 2008

This archive was generated by hypermail 2.1.8 : Wed Jan 16 2008 - 22:24:41 PST