🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6268

Re: Call by string (was: B&D)

#6268
From: Nick Pemberton
Date: Wed, 01 Feb 1989 13:05
21 lines
1276 bytes
Well, being the PICK hack I am, I couldn't help enjoying watching people
struggle with this one for a while. PICK's warped version of BASIC supports
this feature. If a variable contains a string representing the name of
a routine, one can do a call of the form:

CALL @variable(arg1, [arg2, ...])

there is no limit on the number of arguments; the routine can be any
cataloged routine (cataloged just means compiled and in a 'library').
We use it all the time for a generic window driver: It is a data driven
application that has field descritors within it that are capable of calling
any other BASIC routine. Very usefull. Indispensable, in fact. 
And yes, its possible because PICK BASIC is at least partially interpretted.

Nick.
-- 

Nick Pemberton                   UUCP: !{utzoo,utai}!lsuc!aimed!nick
AIM, Inc                          Bus: (416) 429-4913
                                 Home: (416) 690-0647
Technical Details
Message-ID: <186@aimed.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!lsuc!ncrcan!aimed!nick
References: <4279@enea.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!lsuc!ncrcan!aimed!nick
From: nick@aimed.UUCP (Nick Pemberton)
Newsgroups: comp.lang.misc
Subject: Re: Call by string (was: B&D)
Summary: how about PICK? Couldn't resist :-)
Message-ID: <186@aimed.UUCP>
Date: 1 Feb 89 13:05:03 GMT
References: <4279@enea.se>
Organization: AIM, Inc, Toronto, Ontario
Lines: 21