difference static field vs. class var lazarus / 62-General ---------------------------------------------------------------------- Kays · 2016-03-28 19:32 Is there any difference beetween static fields and class variables? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit myGreatUnit; {$mode objfpc} interface type        TMyClass = class              strict private                        // C L A S S                      // attributes                        foo: boolean; static;                        // variables                        class var                                bar: boolean;        end; implementation end.If so, what's the difference between them? (Also, since when is {$static on} illegal? My old code uses it.) EDIT: Never mind, the latest ref says it's equivalent. (I primarily use /usr/share/doc/fp-docs/* which in stable Debian is 2.6.4)