<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7907132636558724853.post4022750733439003654..comments</id><updated>2009-08-31T14:37:43.945-06:00</updated><title type='text'>Comments on CodeCuriosity: Structs</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.codecuriosity.com/feeds/4022750733439003654/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7907132636558724853/4022750733439003654/comments/default'/><link rel='alternate' type='text/html' href='http://www.codecuriosity.com/2009/04/structs.html'/><author><name>Tyler Mercier</name><uri>https://profiles.google.com/118348864204478517743</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-c7qz3BibyjA/AAAAAAAAAAI/AAAAAAAAB1U/iAzTbkOAcB0/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7907132636558724853.post-1034544222826548337</id><published>2009-08-31T10:14:33.103-06:00</published><updated>2009-08-31T10:14:33.103-06:00</updated><title type='text'>Overall this is a comparison of value vs. referenc...</title><content type='html'>Overall this is a comparison of value vs. reference types. &lt;br /&gt;&lt;br /&gt;As you mentioned, I think structs should only be used for small and immutable objects. Messages, depending on the implementation, should probably not be structs IMO.&lt;br /&gt;&lt;br /&gt;One thing that you didn&amp;#39;t talk about was value type) in a method or a wrapping object boxing/unboxing. Whenever you use the struct (a (e.g. array) that takes a reference type (object-derrived) the struct will be copied to the heap anyways. Also, if one is using any reference types within the struct (e.g. string, arrays, etc.) they are already using the heap and simply performing a shallow copy when replicating the struct.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7907132636558724853/4022750733439003654/comments/default/1034544222826548337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7907132636558724853/4022750733439003654/comments/default/1034544222826548337'/><link rel='alternate' type='text/html' href='http://www.codecuriosity.com/2009/04/structs.html?showComment=1251735273103#c1034544222826548337' title=''/><author><name>Jason Morse</name><uri>http://blog.eveningcreek.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codecuriosity.com/2009/04/structs.html' ref='tag:blogger.com,1999:blog-7907132636558724853.post-4022750733439003654' source='http://www.blogger.com/feeds/7907132636558724853/posts/default/4022750733439003654' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1038351035'/></entry></feed>
