Re: type test broken
Kat wrote:
>
> I am feeding a sequence to some code:
>
> }}}
<eucode>
> data = parse("AbCdEF",{"si",'c'})
>
> global function parse(sequence s, object c)
>
> if sequence(c) then
> str = 0 -- this is executed
> end if
>
> if atom(c)
> then
> --code -- not executed
> else
> -- code -- not executed
> end if
> </eucode>
{{{
>
> So why won't the "if atom(c)... else" code execute?
>
Could you post the full function (or at least a full demo that exhibits this
behavior)? I've done stuff like this, and found I overlooked a return or
something, or had incorrectly nested if statements.
Matt Lewis
|
Not Categorized, Please Help
|
|