1. OR Two Values...

Ummm... Can I do this?

-- where posxy = { (1=1) , (1=2) }

function someName( sequence posxy )
        return or_bits( posxy[1] , posxy[2] )
end function

Basically, this is what's happening but it doesn't seem to like this. It
chokes with this message:

Syntax error - expected to see possibly '(' not ','... in referring to the
comma between posxy[1] and [2].

Help!
ck



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » topic index » view message » categorize

2. Re: OR Two Values...

Hello Ck,

  The following code worked fine for me, perhaps you are
overlooking something in your actual code.


-----------------------------------------START Eu code
include get.e

atom ink
sequence posxy

posxy = { (1=1) , (1=2) }

function someName( sequence posxy )
        return or_bits( posxy[1] , posxy[2] )
end function


?someName(posxy)  --prints a "1"

ink=wait_key()

-----------------------------------------END EU code


--Al

new topic     » goto parent     » topic index » view message » categorize

3. Re: OR Two Values...

Yes, I was overlooking something... and discovered it two seconds after I
posted the message! DOH!!

Thanks, though...

-ck

>   The following code worked fine for me, perhaps you are
> overlooking something in your actual code.
>


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu