Computer Science Canada

pre-processor flags

Author:  rizzix [ Fri Jul 04, 2003 1:44 pm ]
Post subject:  pre-processor flags


has any one figured out how to declare pre-processor flags for turing?
there's not enough documentation on this...

Author:  rizzix [ Fri Jul 04, 2003 1:51 pm ]
Post subject: 

also.. is external a possible way to access dll?
what exactly is external used for..?

Author:  UBC_Wiskatos [ Fri Jul 04, 2003 2:36 pm ]
Post subject: 

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).

Author:  rizzix [ Fri Jul 04, 2003 2:43 pm ]
Post subject: 

yea i know.. but turing is a funny language Confused

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.

Author:  Catalyst [ Fri Jul 04, 2003 2:53 pm ]
Post subject: 

external in turing is pretty much used just to access the dll thats has the turing commands

Author:  rizzix [ Fri Jul 04, 2003 2:59 pm ]
Post subject: 

how restrictive Evil or Very Mad

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.

Author:  rizzix [ Fri Jul 04, 2003 3:10 pm ]
Post subject: 

k thats it... no more turing... can't get important things to work.

Author:  Catalyst [ Fri Jul 04, 2003 3:26 pm ]
Post subject: 

thats a good choice