Now for a bit of hypothetical polling! thinking on the generics/templates syntax, one can’t quite shake the feeling Delphi got the C#/C++ generics/templates syntax. The < and > can’t be read out loud, and just look like an out of place reuse of the comparison symbols.
When “record with methods” were introduced, an important feature was overlooked: mutability.
This article discusses the problem, and introduces a possible syntax extension to solve it. Ideas & comments welcome!
Delphi an an ITE for localization (of which I’m not a fan), we’ve been using something very similar to gnu gettext where I work (and I like it), what other String or screen localization tools have you been using and recommending?
You can vote for multiple options, and suggest new ones in the comments!
In Delphi, you can overload functions, but doing so requires using the overload directive explicitly.
The following code declares two functions with the same name, one that will be invoked if you pass an integer, another that will be invoked you pass a string:
I’m looking for a good name for a “TObject ancestor” class, that would introduce no Pascal baggage: no “Create”, no “Destroy”, no “Free”, etc.
TObject would become a subclass of that root class.
Here is a small poll to help me decide in which direction to go about dynamic arrays in DWScript. The poll is at the bottom of the post, to encourage reading before voting 😉
I’m wondering about this question in the context of scripting.
The poll itself is at the bottom, of this post, so you’re encouraged to read the arguments and relevant comments first 😉