1. Binding/Shrouding Problems
- Posted by "Daniel Kluss" <codepilot at netzero.net> Nov 11, 2003
- 508 views
This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3A7D2.DE02C4C0 charset="iso-8859-1" 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> ^ ------=_NextPart_000_0005_01C3A7D2.DE02C4C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1264" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>I made a shrouded include, it works properly when included.</FONT></DIV> <DIV><FONT face=Arial size=2>But when I bind the file with the shrouded include also, it says below</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Help please</FONT></DIV> <DIV><FONT face=Arial size=2>Daniel</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>attempt to redefine sTrIpNs_<BR><scrambled ------=_NextPart_000_0005_01C3A7D2.DE02C4C0--
2. Re: Binding/Shrouding Problems
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 11, 2003
- 481 views
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
3. Re: Binding/Shrouding Problems
- Posted by "Daniel Kluss" <codepilot at netzero.net> Nov 11, 2003
- 478 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! > >
4. Re: Binding/Shrouding Problems
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 11, 2003
- 503 views
On Tue, 11 Nov 2003 06:03:24 -0800, Daniel Kluss <codepilot at netzero.net> wrote: >So if I shroud something, noone can include it in a bound program? A few things are more difficult than perhaps they should be, but it is possible, I've done it. OK, I found it hard and ended up with about 1,700 lines of support code (for a 25,000 line project), but hopefully with my help you won't have to make the same 1,700 mistakes I did. So it might be difficult in parts, but if no-one tries then it will never get any easier, besides it's a challenge, isn't it? They key point I made in my last post was meant to be: >>you cannot use routine_id with *expressions* inside a shrouded >> component. Typically I guess that's less than 1 or 2% of the times it is used. Have you figured out what code is using routine_id in that way? Pete http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html
5. Re: Binding/Shrouding Problems
- Posted by "Daniel Kluss" <codepilot at netzero.net> Nov 11, 2003
- 494 views
Look below ----- Original Message ----- From: "Pete Lomax" <petelomax at blueyonder.co.uk> To: <EUforum at topica.com> Subject: Re: Binding/Shrouding Problems > > > On Tue, 11 Nov 2003 06:03:24 -0800, Daniel Kluss > <codepilot at netzero.net> wrote: > > >So if I shroud something, noone can include it in a bound program? > A few things are more difficult than perhaps they should be, but it is > possible, I've done it. OK, I found it hard and ended up with about > 1,700 lines of support code (for a 25,000 line project), but hopefully > with my help you won't have to make the same 1,700 mistakes I did. > > So it might be difficult in parts, but if no-one tries then it will > never get any easier, besides it's a challenge, isn't it? > > They key point I made in my last post was meant to be: > >>you cannot use routine_id with *expressions* inside a shrouded > >> component. > Typically I guess that's less than 1 or 2% of the times it is used. > > Have you figured out what code is using routine_id in that way? Ya its all my code, the routine_ids are just used in one place, I made them so they don't use EXPRESSions any more, just static text and now it WORKS for binding and everything Thanks Daniel Kluss > > Pete > http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html > > > > TOPICA - Start your own email discussion group. FREE! > >
6. Re: Binding/Shrouding Problems
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 11, 2003
- 501 views
Daniel Kluss wrote: > Ya its all my code, the routine_ids are just used in one place, I made them > so they don't use EXPRESSions any more, just static text and > now it WORKS for binding and everything I'm glad you got it working. I'll look into this issue for the next release. I think the problem will occur if you have: routine_id(general-expression) and you bind or shroud the code twice. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
7. Re: Binding/Shrouding Problems
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 12, 2003
- 495 views
On Tue, 11 Nov 2003 09:35:20 -0800, Daniel Kluss <codepilot at netzero.net> wrote: >Ya its all my code, the routine_ids are just used in one place, I made them >so they don't use EXPRESSions any more, just static text and >now it WORKS for binding and everything > >Thanks >Daniel Kluss Glad I could help Sorry if I mislead you with a few things that weren't actually causing you a problem Pete http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html