<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>StegLog - programming</title>
    <link>http://blog.stegnar.com/</link>
    <description>Reflections on Software Development</description>
    <language>en-us</language>
    <copyright>Peter Stegnar</copyright>
    <lastBuildDate>Fri, 05 Jun 2009 11:29:52 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>peter@stegnar.com</managingEditor>
    <webMaster>peter@stegnar.com</webMaster>
    <item>
      <trackback:ping>http://blog.stegnar.com/Trackback.aspx?guid=24b2d267-c3f3-4fab-a800-93d4a9a13c5b</trackback:ping>
      <pingback:server>http://blog.stegnar.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stegnar.com/PermaLink,guid,24b2d267-c3f3-4fab-a800-93d4a9a13c5b.aspx</pingback:target>
      <dc:creator>Peter Stegnar</dc:creator>
      <wfw:comment>http://blog.stegnar.com/CommentView,guid,24b2d267-c3f3-4fab-a800-93d4a9a13c5b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stegnar.com/SyndicationService.asmx/GetEntryCommentsRss?guid=24b2d267-c3f3-4fab-a800-93d4a9a13c5b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Usually the explanation of object reference
or pointer goes it is an address which reference something. Well in high level overview
we can simplify this to that explanation, but today we well look the difference between
the object reference and pointer and we well see why reference in not nearly the same
thing as pointer.<br /><br /><b>Address</b><br />
First we will look what the address is. Every data cell in memory have address, as
every person have home address, basically that simple it is. Address just happen to
be a property of some specific memory implementation, we could just have other way
to access it.<br /><br /><b>Reference</b><br />
Reference is really simple programming concept. It just reference to something. You
have NO control over it. You can just reference and dereference it.<br /><br /><b>Pointer</b><br />
Pointer is an abstract programming concept, which points somewhere and supports arithmetic
operations. Strictly looking, pointer "per se" have no information, it just know where
can find it. And you have control over it (arithmetic operations). What is connection
between pointer and address? Well Pointer is not an address. Pointer is just implemented
with address, because it just perfectly suits to what Pointer needs. To summarize,
Pointer can do everything what can Reference plus more.<br /><br />
To better understanding I have made some simple diagrams, how looks those two concept
in .NET:<br /><p></p><img src="http://blog.stegnar.com/content/binary/PointerReferenceAddressRelation.png" border="0" /><br /><br /><img width="0" height="0" src="http://blog.stegnar.com/aggbug.ashx?id=24b2d267-c3f3-4fab-a800-93d4a9a13c5b" /></body>
      <title>What is relation between Reference, Pointer and Address</title>
      <guid isPermaLink="false">http://blog.stegnar.com/PermaLink,guid,24b2d267-c3f3-4fab-a800-93d4a9a13c5b.aspx</guid>
      <link>http://blog.stegnar.com/2009/06/05/WhatIsRelationBetweenReferencePointerAndAddress.aspx</link>
      <pubDate>Fri, 05 Jun 2009 11:29:52 GMT</pubDate>
      <description>Usually the explanation of object reference or pointer goes it is an address which reference something. Well in high level overview we can simplify this to that explanation, but today we well look the difference between the object reference and pointer and we well see why reference in not nearly the same thing as pointer.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Address&lt;/b&gt;
&lt;br&gt;
First we will look what the address is. Every data cell in memory have address, as
every person have home address, basically that simple it is. Address just happen to
be a property of some specific memory implementation, we could just have other way
to access it.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Reference&lt;/b&gt;
&lt;br&gt;
Reference is really simple programming concept. It just reference to something. You
have NO control over it. You can just reference and dereference it.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Pointer&lt;/b&gt;
&lt;br&gt;
Pointer is an abstract programming concept, which points somewhere and supports arithmetic
operations. Strictly looking, pointer "per se" have no information, it just know where
can find it. And you have control over it (arithmetic operations). What is connection
between pointer and address? Well Pointer is not an address. Pointer is just implemented
with address, because it just perfectly suits to what Pointer needs. To summarize,
Pointer can do everything what can Reference plus more.&lt;br&gt;
&lt;br&gt;
To better understanding I have made some simple diagrams, how looks those two concept
in .NET:&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://blog.stegnar.com/content/binary/PointerReferenceAddressRelation.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://blog.stegnar.com/aggbug.ashx?id=24b2d267-c3f3-4fab-a800-93d4a9a13c5b" /&gt;</description>
      <comments>http://blog.stegnar.com/CommentView,guid,24b2d267-c3f3-4fab-a800-93d4a9a13c5b.aspx</comments>
      <category>.NET</category>
      <category>programming</category>
    </item>
  </channel>
</rss>