Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 pre-processor flags
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rizzix




PostPosted: Fri Jul 04, 2003 1:44 pm   Post subject: pre-processor flags

well...

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




PostPosted: Fri Jul 04, 2003 1:51 pm   Post subject: (No subject)

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




PostPosted: Fri Jul 04, 2003 2:36 pm   Post subject: (No 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).
rizzix




PostPosted: Fri Jul 04, 2003 2:43 pm   Post subject: (No subject)

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

here's what the documentation says:
Quote:

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




PostPosted: Fri Jul 04, 2003 2:53 pm   Post subject: (No subject)

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




PostPosted: Fri Jul 04, 2003 2:59 pm   Post subject: (No subject)

how restrictive Evil or Very Mad

their examples are wrong then:
Quote:

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




PostPosted: Fri Jul 04, 2003 3:10 pm   Post subject: (No subject)

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




PostPosted: Fri Jul 04, 2003 3:26 pm   Post subject: (No subject)

thats a good choice
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: