Re: Another Error

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> One thing which I find missing in Eu is the ability to perform element wise
> operations that might apply to sequences as a whole. I'd like to 
> be able to write 
> 
> }}}
<eucode>
> s=atom(`x)
> </eucode>
{{{

> 
I have a psqop.e file which wraps some 35 such functions like you showed, if
that helps. The above is available as sq_atom(x).

>In a nutshell, functional operators are missing.
Are you talking about routine_id not working on builtins? Again, you could write
a standard include to solve this, eg:

function _atom(object o)
    return atom(o)
end function

function Routine_ID(sequence name)
integer r
    r = routine_id(name)
    if r=-1 then
        r=routine_id('_'&name)
    end if
    return r
end function


Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu