Subject: | |
From: | |
Reply To: | Emerson, Tom |
Date: | Wed, 5 May 2004 17:22:25 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> From: Bill Cadier
>
> Ray asks an interesting technical question:
>
> > Given the following WS:
> > 88 TEST-RANGE VALUE "B" THRU "Y".
> >
> > Does the compiler [...] (generate code to test each possible value)
>
[previously, I replied with:]
> This is a big of a SWAG, but I'd imagine that since you've
> specified a "thru" condition/range, the compiler might only
> test the endpoints, as in
>
> IF (testvar >= "B") AND (testvar <= "Y")
and Bill confirms:
> COBOL is only checking the boundary values of an 88 item
> using "thru" and not checking
> each value in the range. To determine this I added
>
> CALL INTRINSIC "DEBUG".
> IF NOT TEST-RANGE ...
So, my "guess" was rather accurate after all...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|