Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still have a recognition letter from Borland regarding a bug I have found in Turbo Pascal 6.0.

    function BrokenResult: Integer;
    var

      BrokenResult: Integer; (* This should not happen *)


    begin
      BrokenResult := 42  (* Local variable will be assigned, function result is whatever the compiler comes up with*)
    end;


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: