Re: Binding/Shrouding Problems

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

On Mon, 10 Nov 2003 21:37:40 -0800, Daniel Kluss
<codepilot at netzero.net> wrote:

>I made a shrouded include, it works properly when included.
>But when I bind the file with the shrouded include also, it says below
>
>Help please
>Daniel
>
>attempt to redefine sTrIpNs_
><scrambled code>
>     ^
This is a routine automatically inserted by the shrouder when it finds
routine_id being called with a variable expression instead of a
literal value. When you include that in another file it sees the call
to "routine_id(sTrIpNs_(<whatever>))" so promptly inserts a second
copy of the routine (hence the error) and changes the line to
"routine_id(sTrIpNs_(sTrIpNs_(<whatever>)))". sad(

I think Rob is already aware of this, but I can't find any reference
to it.

AFAIK, you cannot use routine_id with expressions inside a shrouded
component. If it's third party code that's doing this, I can show you
a way round it but be warned it could be quite an effort.

If it is your code you could try something like this:

-- before --
function funcA...
..
x=routine_id("func"&letter)
-- after --
function funcA...

constant ridlist={"funcA",routine_id("funcA"),
			    ...
			}
x=ridlist[find("func"&letter,ridlist)+1]

Not pretty, I know.

Pete
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

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

Search



Quick Links

User menu

Not signed in.

Misc Menu