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

Username:   Password: 
 RegisterRegister   
 What is this symbol
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
timmytheturtle




PostPosted: Thu Nov 04, 2004 4:46 pm   Post subject: What is this symbol

Does anyone now what this symbol is used for : ->
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Thu Nov 04, 2004 5:11 pm   Post subject: Re: What is this symbol

timmytheturtle wrote:
Does anyone now what this symbol is used for : ->


In many programming languages it's the "indirect access" operator. You use it when you have a pointer to a record (or "struct") type and wish to access its members.

In turing it's often used with classes.

code:
class A
    export say

    procedure say
        put "hello"
    end say
end A

var c : pointer to A

new A, c

c -> say
timmytheturtle




PostPosted: Thu Nov 04, 2004 6:28 pm   Post subject: (No subject)

thanx wtd
Andy




PostPosted: Thu Nov 04, 2004 6:31 pm   Post subject: (No subject)

its also used in pseudocode
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  [ 4 Posts ]
Jump to:   


Style:  
Search: