Page 3 of 3 FirstFirst 1 2 3
Results 31 to 34 of 34

Thread: How to sort files with custom function?

  1. #31
    Quote Originally Posted by marcov View Post
    That code is unnecesary. $mode delphi includes $H+, while $mode objfpc does not. You probably just changed a objfpc to delphi, not realising that delphi includes $H+
    It almost feels like you were sitting next to me when I done that as that is exactly what happened

    It is my ignorance in not knowing (or having verified) what mode settings are part of mode delphi.

    I was more or less expecting (again my ignorance) that using mode delphi would have come close for TS to be able to compile the pasted code for his Delphi 7 version.

    No it isn't'. It is just very long ago (before D2-3) when it mattered. See https://docwiki.embarcadero.com/RADS...rings_(Delphi)

    The origins for this are that Delphi mostly only supports TP for migration purposes, while FPC also supports it for keeping code in TP form running. That was more important before 2005 than it is now, but because a large body of code (including the core of lazarus) was written in that period, the modes were frozen as is to keep that running.
    Thank you for the corrections and history lesson marcov.

    It has been ages since I last used Delphi so I simply couldn't recall.
    Iedereen wist dat het onmogelijk was. Behalve dan die ene dwaas die dat niet helemaal goed had begrepen en het toch deed.

  2. #32
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    IMHO Mode objfpc is a leftover of a vanity project that is best forgotten. Unfortunately the other devels don't agree with me :-)

  3. #33
    I really like the {$mode objfpc}, it's a bit clearer/cleaner than {$mode delphi} in my very humble opinion.

  4. #34
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    Paper thin, and not worth fragmenting generated codebases over. IMHO

Page 3 of 3 FirstFirst 1 2 3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •