use dummy field as part of the goto label

Kenneth Brody kenbrody at bestweb.net
Tue May 6 09:17:47 PDT 2008


Quoting Jay R. Ashworth (Tue, 6 May 2008 11:53:38 -0400):

> On Mon, May 05, 2008 at 11:07:15AM -0400, Walter Vaughan wrote:
>> Dennis Malen wrote:
>> >Within input processing, is it possible to use a dummy filed as part of the
>> >name of the goto label, such as:
>> >
>> >zz="rab";goto rpt{zz
>> >
>> >How can I have filepro acknowledge the rpt{zz and goto rptrab?
[...]
> To expand this answer, no, the argument to a GOTO or GOSUB cannot be a
> variable's contents (that I know of).  It must be a literal.

Another way of putting it might be "it must be a compile-time constant".  :-)

Basically, it must be resolvable at compile time.

> If the handling of this issue was first-class,

I'm not sure what you mean by "first-class" here.

> then you might be able to do:
>
> zz=rpt{"rab"; goto (zz)
>
> but I'm pretty sure you can't.

Correct.

Again, the destination for goto and gosub must be resolvable at compile
time.  Could a future version of the filePro virtual machine (let's try
to stay buzzword-compliant here) be enhanced to allow these destinations
to be runtime-resolvable?  Yes, it would be possible.

-- 
Read the truth behind the movie "Expelled" at <http://www.ExpelledExposed.com>
--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list