{"id":2263,"date":"2010-02-12T21:57:51","date_gmt":"2010-02-13T01:57:51","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?p=2263"},"modified":"2010-02-12T22:11:58","modified_gmt":"2010-02-13T02:11:58","slug":"find-you","status":"publish","type":"post","link":"http:\/\/www.hoogervorst.ca\/arthur\/?p=2263","title":{"rendered":"Find, you"},"content":{"rendered":"<p><span class=\"dropcap\">L<\/span>ast <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?attachment_id=2264\" rel=\"attachment wp-att-2264\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2010\/02\/code_pascal-150x115.jpg\" alt=\"\" title=\"Code.\" width=\"150\" height=\"115\" class=\"alignright size-thumbnail wp-image-2264\" srcset=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2010\/02\/code_pascal-150x115.jpg 150w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2010\/02\/code_pascal-300x230.jpg 300w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2010\/02\/code_pascal.jpg 683w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a> weekend, I decided to pick up my Delphi compiler and work a bit on <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?page_id=166\">Fandro<\/a>: in real life, I found out that I wanted to be able to launch Fandro from Explorer&#8217;s context-sensitive menu and henceforth, I worked on adding support for this.\n<\/p>\n<p>I always thought doing Win32 was fairly simple in Delphi. Additionally, Borland used to have excellent demos and sample apps with full sources. However during this short coding stint, I admit, programming in Delphi ended up being sort of a pain, mainly because I&#8217;ve been by Visual Studio. And I always thought the <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?p=1840\">language&#8217;s assignment statement was silly<\/a>.  There&#8217;s another thing of Pascal that has bothered me for ages: the fact that to return values from functions you can use the special &#8216;result&#8217; variable or the function&#8217;s name. As in:\n<\/p>\n<p><pre>\r\nfunction MyOperation(a, b : integer) : boolean;\r\nbegin\r\n   result := (Ord(a > b) = Ord( b < a))\r\nend;\r\n\r\nfunction MyOperation(a, b : integer) : boolean;\r\nbegin\r\n   MyOperation := (Ord(a > b) = Ord( b < a))\r\nend;\r\n<\/pre>\n<\/p>\n<p>I don't consider myself a Delphi programmer anymore: however, don't you just love the part where compiling code actually means generating a stand-alone Win32 application?\n<\/p>\n<p class=\"reference\">Note: I believe that Delphi statement above holds the answer of life and it's this year's Valentine's present to you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last weekend, I decided to pick up my Delphi compiler and work a bit on Fandro: in real life, I found out that I wanted to be able to launch Fandro from Explorer&#8217;s context-sensitive menu and henceforth, I worked on &hellip; <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?p=2263\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[416,146,415],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/2263"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2263"}],"version-history":[{"count":1,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/2263\/revisions"}],"predecessor-version":[{"id":2265,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/2263\/revisions\/2265"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2263"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}