Re: String Reference Type
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Sat, 9 Feb 2008 15:06:57 -0700
A string can potentially contain a lot of data, and there's no telling what size a particular string might need to be.
Therefore, not only does it make little sense to try and store a string in a register or on the stack, or anything else you'd do with a value type, strings have always been pointers in traditional languages.
Why would it be a value type?
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"RN1" <rn5a@xxxxxxxxxxxxxx> wrote in message news:ed9a9b74-a8c9-47f4-ab87-38a6b3234b1c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If I am not mistaken, String is reference type. Can someone please
explain me why is it reference type & not value type?
.
- Follow-Ups:
- Re: String Reference Type
- From: Lars
- Re: String Reference Type
- From: RN1
- Re: String Reference Type
- References:
- String Reference Type
- From: RN1
- String Reference Type
- Prev by Date: Re: Publishing my Web Site
- Next by Date: Re: String Reference Type
- Previous by thread: String Reference Type
- Next by thread: Re: String Reference Type
- Index(es):
Relevant Pages
|
Loading