Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

immutable data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bbawa1@yahoo.com - 26 Jun 2007 19:46 GMT
What does the term immutable mean?  Could you please explain me with
examples.
Jon  Paal [MSMD] - 26 Jun 2007 20:00 GMT
cannot be changed

http://www.google.com/search?q=define+immutable

> What does the term immutable mean?  Could you please explain me with
> examples.
Alex Meleta - 26 Jun 2007 20:03 GMT
Hi,

...  immutable object is an object whose state cannot be modified after it
is created. This is in contrast to a mutable object, which can be modified
after it is created....
The source (and examples): http://en.wikipedia.org/wiki/Immutable_object 

Alex
http://devkids.blogspot.com

> What does the term immutable mean?  Could you please explain me with
> examples.
Richard Clafton - 26 Jun 2007 21:02 GMT
Hello bbawa1@yahoo.com,

> What does the term immutable mean?  Could you please explain me with
> examples.

Google is your friend when looking for definitions....

Enter into google:

define:immutable object
tomk148@gmail.com - 26 Jun 2007 22:37 GMT
"LOLRTFM"

immutable objects are significant because of how the compiler will
deal with them.  for instance C# strings are immutable, so if you say

string s = "bl";
foreach (int i=0; i<10; i++)
     s += "a";
s+= "h";

the end result is what you think it would be, but the compiler will be
creating lots more temporary strings in between.

"bla", "blaa", "blaaa" ... etc

if strings weren't immutable you wouldn't have as many temporary
objects, but things maintenance behind the scenes would be slower.
When objects are immutable the compiler has more assumptions to work
on and will be faster in the long run (assuming you avoid stuff like
the above).  So if something is immutable you should be aware of
temporary object creation getting out of hand.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.