Doubt 
Author Message
 Doubt

 Hi guys,

Back with another question.
I have a type declaration

type ARR1_TYP is array(POSITIVE range <>) of REAL;

I declared a constant of type ARR1_TYP(1 to 4064)

variable H: ARR1_TYP(1 to 4064) := (1.0, 2.0, etc..);--4064 reals

But this type of declaration only works if it is

variable H: ARR1_TYP(1 to 4064) := (REAL(1.0), 2.0, etc..);

Or else i get an error saying discrete range not consistent.

I use Synopsys Analyzer.

Why is this?

Thanks in advance.

RAM GUMMADI



Sun, 23 Feb 1997 22:39:27 GMT  
 Doubt

: I have a type declaration
:     type ARR1_TYP is array(POSITIVE range <>) of REAL;

: I declared a constant of type ARR1_TYP(1 to 4064)
:     variable H: ARR1_TYP(1 to 4064) := (1.0, 2.0, etc..);--4064 reals

: But this type of declaration only works if it is
:     variable H: ARR1_TYP(1 to 4064) := (REAL(1.0), 2.0, etc..);

: Or else i get an error saying discrete range not consistent.
: I use Synopsys Analyzer.

: Why is this?

Casual inspection leads me to think because of a bug in your analyzer.

--Paul

--

Menchini & Associates|                           |prove their worth by
2 Davis Dr./POB 13036|    voice: 919-990-9506    |hitting back."
RTP, NC  27709-3036  |    fax:   919-990-9507    |         -- Piet Hein



Mon, 24 Feb 1997 02:41:22 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. if/else hell, lost beyond reasonable doubt

2. Drop List Control Doubt

3. doubts about Clarion driver

4. Btrieve related doubt PUT/NEXT

5. Clipper 5.01 doubt ...

6. Doubts

7. A doubt in Object Oriented programing in PERL

8. Doubts About C++

9. Unix haters/baiters/fighters (was Re: Doubts About C++)

10. A very little doubt.

11. quickbasic doubt

12. Doubt regd Job submission thru REXX

 

 
Powered by phpBB® Forum Software