4 ms·
Now, granted, my knowledge on Pascal, Delphi and Lazarus is qite old and I've not used any of them for a long time, so if I'm making errors in anything I say be
by lelanthran 6y ago
Now, granted, my knowledge on Pascal, Delphi and Lazarus is qite old and I've not used any of them for a long time, so if I'm making errors in anything I say below, then please accept my apologies in advance :-)
>> An instance of a class is not the same thing as an object.
> I have no idea what you mean here, sorry.
This explains the issue quite well: https://forum.lazarus.freepascal.org/index.php/topic,43622.msg305634.html#msg305634 https://forum.lazarus.freepascal.org/index.php/topic,43622.m...
> Today, try using TFileStream.
I have used it and was not as unhappy with it as I was with the Standard Pascal file IO functions. I was never able to figure out from the exception why a TFileStream method failed. The most you could infer was that an error occurred, but not what error.
This makes for a very poor interface to the user in the resulting application, as they have no idea what to do to fix the error before retrying. In most other languages (that Delphi and Lazarus compete with) you can let the user know what they should do to fix the error before retrying.
> You can consume variadic methods written in a C library,
That doesn't apply to what I was saying. I meant that a programmer could not write a Pascal procedure that wrapped a variadic-args Pascal procedure. C has nothing to do with this.
This is occasionally useful (say, for logging), and its ommission is one of those tiny things that add friction.
With all that being said, I still prefer doing native GUI apps in Lazarus to almost everything else out there. It's insanely readable even after a prolonged period.
- unnouinceput 6y agoQuote: ">> An instance of a class is not the same thing as an object. > I have no idea what you mean here, sorry. This explains the issue quite well: https://forum.lazarus.freepascal.org/index.php/topic,43622.m https://forum.lazarus.freepascal.org/index.php/topic,43622.m..." I am not sure how Lazarus implements stuff behind the scene but I can tell you 100% for sure that in Delphi every declared class has TObject as ancestor class, so when you instantiate a class in Delphi, you are creating an object.
- lelanthran 6y ago> I am not sure how Lazarus implements stuff behind the scene but I can tell you 100% for sure that in Delphi every declared class has TObject as ancestor class, so when you instantiate a class in Delphi, you are creating an object. Like I said, my experience is quite old (circa 2004 with Delphi), but last I used Delphi, it functioned identically to the way that link for Lazarus said it did. You could create your own class, then instantiate it, and what you got was different from creating an instance of an object.