
-----------------------------------
rizzix
Fri Jul 04, 2003 1:44 pm

pre-processor flags
-----------------------------------
well...

has any one figured out how to declare pre-processor flags for turing?
there's not enough documentation on this...

-----------------------------------
rizzix
Fri Jul 04, 2003 1:51 pm


-----------------------------------
also.. is external a possible way to access dll?
what exactly is external used for..?

-----------------------------------
UBC_Wiskatos
Fri Jul 04, 2003 2:36 pm


-----------------------------------
External is used to tell the compiler that the variable is defined in another file. Well, that's what it is used for in C/C++ (extern).

-----------------------------------
rizzix
Fri Jul 04, 2003 2:43 pm


-----------------------------------
yea i know.. but turing is a funny language  :?

here's what the documentation says:

An external declaration is used to access variables or subprograms that are written in other languages or which require special linkage. This feature is implementation-dependent and dangerous and may cause arbitrary data or program corruption. From an interpretive environment such as Turing, this provides linkage to items that are part of the Turing system. For compiled versions of Turing, the linkage would be by means of a standard, operating system-specific linkage editor.


-----------------------------------
Catalyst
Fri Jul 04, 2003 2:53 pm


-----------------------------------
external in turing is pretty much used just to access the dll thats has the turing commands

-----------------------------------
rizzix
Fri Jul 04, 2003 2:59 pm


-----------------------------------
how restrictive  :evil:

their examples are wrong then:

In form (a) the optional overrideName must be an explicit string constant, such as "printf". If it is omitted, the external name is the name in the subprogramHeader. See subprogramHeader.


unless that's in their lang.dll as well
or may be it's just an example.

-----------------------------------
rizzix
Fri Jul 04, 2003 3:10 pm


-----------------------------------
k thats it... no more turing... can't get important things to work.

-----------------------------------
Catalyst
Fri Jul 04, 2003 3:26 pm


-----------------------------------
thats a good choice
