Re: Binding/Shrouding Problems
- Posted by "Daniel Kluss" <codepilot at netzero.net> Nov 11, 2003
- 477 views
So if I shroud something, noone can include it in a bound program? Daniel Kluss ----- Original Message ----- From: "Pete Lomax" <petelomax at blueyonder.co.uk> To: <EUforum at topica.com> Subject: Re: Binding/Shrouding Problems > > > 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>)))". ( > > 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 > > > > TOPICA - Start your own email discussion group. FREE! > >