title: Wierd Delphi behavour
body: <p>Due to a bug in my code I stumbled upon this scenario by accident: -  </p>
  
  <pre><code>function Bogus: string;
  begin
  end;
  
  var
    s: string;
  begin
    s:='Original value';
    s:=Bogus;
    MessageDlg(s, mtInformation, [mbOK], 0);
  end.
  </code></pre>
  
  <p>Will show a dialog of <code>Original value</code> where the non-result of my function call has no effect on my var; I would have expected it to be empty.</p>
  
  <p>Is this the expected behaviour?  Can it be relied upon?  Would anyone actually implement this on purpose??!?</p>
  
  <p><sub>I've been using Delphi since 1995 and have never encountered this before.<br />
  (Even to this day I still won't select text from the cursor placed by the IDE on a compile error as that used to crash Delphi 1.0!!!)</sub></p>