
-----------------------------------
timmytheturtle
Thu Nov 04, 2004 4:46 pm

What is this symbol
-----------------------------------
Does anyone now what this symbol is used for : ->

-----------------------------------
wtd
Thu Nov 04, 2004 5:11 pm

Re: What is this symbol
-----------------------------------
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.

class A
    export say

    procedure say
        put "hello"
    end say
end A

var c : pointer to A

new A, c

c -> say

-----------------------------------
timmytheturtle
Thu Nov 04, 2004 6:28 pm


-----------------------------------
thanx wtd

-----------------------------------
Andy
Thu Nov 04, 2004 6:31 pm


-----------------------------------
its also used in pseudocode
