Re: Bind features
- Posted by David Cuny <dcuny at LANSET.COM> Jun 29, 1999
- 647 views
Well, I've finally compiled my Pretender demo under Llama, using my own version of shroud. In addition to creating unique identifiers for non-core identifiers, it also resolves strings in the routine_id function. For some reason, Euphoria doesn't like any 'with' commands (trace/etc. or magic numbers). Once they were removed from the file, I could bind it up just fine. It leaves the 'core' routines alone, so you get code that looks like: procedure id_34( sequence id_35, integer id_36 ) puts( 1, "%d", id_35 ) id_36 += 23 end procedure id_37 = routine_id( "id_34" ) I need to add a command line interface to it, and clean it up a bit. It's not especially clever - the code for handling global vs. local binding will raise the hair on your neck, but it seems to work fine. If people are interested, I'll send it off to Robert, probably later tomorrow. I don't think he'll have any objections to posting it, but I could be wrong. There aren't any trade secrets involved, since the description of how shroud is fairly well known. As you can see, it doesn't encode any of the 'core' routines ('puts' is left as 'puts', etc.). I'm not sure how useful it is, since Robert is going to fix bind/shroud anyway. -- David Cuny