Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!apple.com!gannholm From: gannholm@apple.com (Martin Gannholm) Newsgroups: comp.sys.mac.hypercard Subject: Re: passing var parameters in HyperTalk Message-ID: <9709@goofy.Apple.COM> Date: 11 Aug 90 06:52:35 GMT References: <84042@cc.utah.edu> Sender: usenet@Apple.COM Distribution: usa,world Organization: Apple Computer, Inc. Lines: 21 In article <84042@cc.utah.edu> KOFOID@cc.utah.edu writes: > 2) Pass the body of a script to an XCMD, which then executes it and sets the > appropriate containers to values calculated within the script. However, the > available glue routines only allow XCMDs to execute singe HT expressions. I am > not at all sure how one could extend this to the execution of a script body, > without first writing an entire HT interpreter, which essentially recreats > HyperTalk within an XCMD! In HyperCard 2.0, the "do" command can take multi-line scripts, even containing repeat loops and if statements. I'm not sure this would do exactly what you want, but it is useful in many situations. Martin Gannholm Apple Computer Exclaimer !!! I typed this myself, therefore I am myself !