<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The curse of Dennis D. Spreen &#187; OOP</title>
	<atom:link href="http://blog.spreendigital.de/tag/oop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spreendigital.de</link>
	<description>A blog about Delphi programming, web and other technical stuff</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:06:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Delphi Prism new language features</title>
		<link>http://blog.spreendigital.de/2008/11/21/delphi-prism-new-language-features/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=delphi-prism-new-language-features</link>
		<comments>http://blog.spreendigital.de/2008/11/21/delphi-prism-new-language-features/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 15:38:05 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Delphi Prism]]></category>
		<category><![CDATA[Delphi Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Object-oriented programming]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[Prism]]></category>

		<guid isPermaLink="false">http://www.spreendigital.de/blog/?p=84</guid>
		<description><![CDATA[Andreano Lanusse wrote about the new Delphi Prism language features compared to Delphi Win32. Some of them I really would like to see in Delphi Win32 and some I don&#8217;t like and disallowed it in our internal code creation rules. The most important I dislike is &#8220;Variable everywhere and create a instance at the same [...]]]></description>
			<content:encoded><![CDATA[<p>Andreano Lanusse <a href="http://blogs.codegear.com/andreanolanusse/2008/11/19/delphi-prism-language-what-you-can-do/" target="_blank">wrote</a> about the new Delphi Prism language features compared to Delphi Win32.</p>
<p>Some of them I really would like to see in Delphi Win32 and some I don&#8217;t like and disallowed it in our internal code creation rules. The most important I dislike is</p>
<p><span id="more-84"></span></p>
<p>&#8220;Variable everywhere and create a instance at the same time you declare.&#8221;</p>
<pre><strong>var</strong>
  path : String := System.IO.Path.GetFullPath(tbDatabase.Text);
  db : DataContext := new DataContext(path);
<strong>begin</strong>
  var i : Integer := 0;
  var contacts := from contact in db.GetTable&lt;Contact&gt;() select contact;
<strong>end.</strong></pre>
<p>Looks awkful to me (like VB). This is the code written by our long term code creation rules:</p>
<p style="padding-left: 30px;">
<pre><strong>var</strong>
  Path: String;
  Db: DataContext;
  I: Integer := 0;
<strong>begin</strong>
  Path := System.IO.Path.GetFullPath(tbDatabase.Text);
  Db := new DataContext(Path);
  Contacts := from contact in db.GetTable&lt;Contact&gt;() select contact;
<strong>end;

</strong></pre>
<p>I like the separation from var declaration and code.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spreendigital.de/2008/11/21/delphi-prism-new-language-features/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

