Re: [CHALLENGE] finding rightmost zero bit



James Giles wrote:

Bart Vandewoestyne wrote:

(snip)

This appears to be not F-compliant.  Glen, can you make your
solution conform to the F-syntax?  I don't know how I should
translate the Z'AAAAAA and stuff to F as I don't know what that
syntax means...

Does F allow BOZ constants at all?  The above are standard
compliant BOZ constants anyway: BOZ constants are required
to have a delimiter after the last digit of the literal as in the
following.

if(iand(j,Z'AAAAAAAA').NE.0) pos=pos+1

Oops, I didn't read far enough.

The first compilers I used that accepted hex constants take them
without any ' or " but only in DATA statements.  There is no
ambiguity, as identifiers aren't allowed there.  It does
look nicer with matching delimiters.

I don't know F much at all.

-- glen

.