Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/07/19 in all areas

  1. 6 points
    You should read this post
  2. 3 points
    var [weak] fib: TFunc<integer,int64>; Marking it as weak breaks the cycle. However, there was a bug with weak that is only recently fixed (not sure whether in 10.3 or 10.3.1)
  3. 3 points
    Error Insight has always been Error Inside. It never worked properly, and was always lagging behind.
  4. 2 points
    Yes, they work 🙂 (and why wouldn't they?). program RecursiveAnon; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; function MakeFib: TFunc<integer,int64>; var fib: TFunc<integer,int64>; begin fib := function (value: integer): int64 begin if value < 3 then Result := 1 else Result := fib(value - 1) + fib(value -2); end; Result := fib; end; begin var fib := MakeFib; for var i := 1 to 10 do Write(fib(i), ' '); Readln; end.
  5. 2 points
    Ah, a white box on a white background with a light grey caption. Thanks, Angus
  6. 2 points
    I see what you did there, @Lars Fosdal 😉
  7. 1 point
    ICS V8.58 added a new TSslX509Certs component allowing ICS servers to automatically order, download and install SSL/TLS certificates from various suppliers, including free certificates from Let's Encrypt, and commercial certificates for DigiCert, Comodo, Thawte and GeoTrust from CertCentre AG. It also acts as a private CA to issue local certificates. The TSslWSocketServer, TSslHttpServer, TSslHttpAppSrv, TIcsProxy and TIcsHttpProxy components can assign a TSslX509Certs component to support automatic certificate ordering of domain validated certificates with very little extra code. There is a new sample project OverbyteIcsX509CertsTst to demonstrate the TSslX509Certs component, which may be used as a standalone application to order X509 certificates from Let's Encrypt and CertCentre AG, and monitor the certificate orders database, and to issue own CA certificates. http://wiki.overbyte.eu/wiki/index.php/FAQ_Order_SSL_Certificates I'm about to revisit the TSslX509Certs component to support some Let's Encrypt changes like the new SSL challenge, so am interested in any feedback or suggestions from those that have used it, Even just the sample application which can be used to order certificates for other web servers or applications. Angus
  8. 1 point
    I see, I'd check then "Row Versioning". I never used it yet but I'll try it myself when I find some time.
  9. 1 point
    So, let's just rename it to Insight Errors...
  10. 1 point
    They would have a ton of other bugs to fix before adding this new feature...all in all it is a waste of time and energy, just scrap it and invest said time and energy into more crucial parts of the IDE.
  11. 1 point
    There is no way to differentiate which control set the ModalResult if they both set it to the same value. ShowModal() will close the Form when any non-zero value is assigned to ModalResult, you are not limited to the handful of constants that the RTL defines, use whatever values you want.
  12. 1 point
    Indeed, I got the "obvious" part from Hoare 🙂 The parallel part is all mine though. And I stand behind it. If one writes a unit test which tests the specification in full, it can in theory prove that a single-threaded unit complies with the specification. Throwing parallel processing in the mix, however, prevents us from even that result. At most one can say is that the unit probably works as expected inside one test environment on one computer.
  13. 1 point
    Aw come one, you got that somewhere else. <g> Ah. here it is: " There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." -- C.A.R. Hoare And: "Program testing can be used to show the presence of bugs, but never to show their absence!" -- Edsger W. Dijkstra. After all, I still have this quotes file I use for XanaNews. <g>
  14. 1 point
    Indeed. In single-threaded code, good unit tests will show that the code obviously has no errors. In multi-threaded code, good unit tests will show that the code has no obvious errors. IOW, unit tests can only prove that your multi-threaded code doesn't work, not that it does.
  15. 1 point
    It is waste if you spend time continuously fixing the same broken code, instead of buying or rebuilding something that can replace it and reduce "daily" maintenance chores?
  16. 1 point
    You have a problem so you decide to use threads. you problems.2 have Now
  17. 0 points
    @Uwe Raabe found two main form entries, no clue how that could have happened, possibly the compiler migration? Cleaned it up in any case. this is a project started on XE7, which I've taken to 10.3 (no copy, just compile as is). Uninstalled all addons (MMX, CNPack, GExperts) to isolate the problem. It also seems I have located the culprit to be the "background compilation" option. Had it enabled since XE7 due to large cycles / long compilation, which have since gone down drastically to a point where the background compilation is no longer really needed. This is reproducible on a fresh 10.3.1 project, maybe add a button and an OnClick event. the current steps to reproduce: - have background compilation on - full build, just in case - build passes successfully - introduce syntax error, don't save - compile without saving - compilation passes successfully (incorrect behavior) to fix: - disable background compilation - remove syntax error - save and full build, just in case - compilation passes successfully - introduce syntax error, don't save - compile without saving - compilation fails (correct behavior)
×