Discussion:
Something Weird Preceeds my Function Parameter List
(too old to reply)
Michael Daniluk
2009-08-21 21:50:07 UTC
Permalink
Hello All,

I am looking at some M2 code compiled with Stony. I am encountering
many functions whose function name resembles the following ...

PROCEDURE SuperFunc
['SomeString_1SuperFunc']
( a : INTEGER;
b : INTEGER; ); ...

For the life of me I cannot figure out what is denoted by
['Somestring_1SuperFunc'] ... and yes that is a 1, not a typo. Has
anyone encountered something like this before? Thanks much.

truly,
Michael
Chris Burrows
2009-08-22 00:25:56 UTC
Permalink
Post by Michael Daniluk
Hello All,
I am looking at some M2 code compiled with Stony. I am encountering
many functions whose function name resembles the following ...
PROCEDURE SuperFunc
['SomeString_1SuperFunc']
( a : INTEGER;
b : INTEGER; ); ...
For the life of me I cannot figure out what is denoted by
['Somestring_1SuperFunc'] ... and yes that is a 1, not a typo. Has anyone
encountered something like this before? Thanks much.
For a summary of the Stony Brook language extensions see:

http://www.modula2.org/sb/websitearchive/m2_extensions.htm

<quote>
...you can change the public symbol name of any variable for easy
interfacing with other languages.

Example:
VAR MyVar ["PublicName"] : CARDINAL;

</quote>

Presumably this also applies to the external names of procedures as well as
variables.

--
Chris Burrows
CFB Software
Armaide v2.1: ARM Oberon-07 Development System
http://www.cfbsoftware.com/armaide

Loading...