F
fairyvoice
Hi, I want to ask some basic question about the string type. When compiling
the unsafe code:
---------
string a = "wori";
string* b = &a;
---------
it pops up errors saying both 'string*b' and '&a' are illegal because string
is a managed type, while in the same case the 'int' type is available.
Why can't i get the point or the address of a string type? Is that because
string is immutable and every time you change it a new address will be given?
Thx in advanced
the unsafe code:
---------
string a = "wori";
string* b = &a;
---------
it pops up errors saying both 'string*b' and '&a' are illegal because string
is a managed type, while in the same case the 'int' type is available.
Why can't i get the point or the address of a string type? Is that because
string is immutable and every time you change it a new address will be given?
Thx in advanced