Lets see if the KGB can make you talk.
Actually they tried to four times in my life IIRC but failed. It
wasn't Stalin's original KGB (called OGPU at those times) though.
What would be the preferred TinyScheme syntax for passing a list to a BASIC array?
It would be OK if general syntax is
(foreign-call <BASIC-foo-name> [<param1> <param2> . . . <paramn>])foreign-call can also be
foreign-function.
BASIC-foo-name is the name of the function or sub you're actually calling. Optional
param's can be of any type that Tinyscheme can pass and BASIC can accept. Any of the
param's can be distinct data objects (separate chars, numbers, strings), char and number vectors (i.e. arrays), or lists containing any of the aforementioned data objects in any combination. A
param can also be an expression result, e.g.
(+ 2 2) or the name of a variable that refers to any of the aforesaid objects, in which case the variable's value is passed as the actual parameter.
That's what I've seen in the LISP languages so far. Perhaps Rob can suggest something better.
P.S. Lists are usually expressed through the name of the variable that actually refers to the list in question, or through an expression that returns a list, e.g.
(list 1 2 3 4 5). An empty list is denoted as
() or
'() and would evaluate to 0 in such a language as SB. In BASIC's that recognize pointers, an empty list would also evaluate to a void zero pointer, or NULL.