-
Content Count
652 -
Joined
-
Last visited
-
Days Won
12
Posts posted by Bill Meyer
-
-
6 minutes ago, AlekXL said:It's wouldn't hurt anyone to add a keyword or two.
It's less about the number -- though number is a consideration -- than about the thoughtful and deliberate decisions made with regard to extending the language. That said, I dare say we all have our pet topics for improvements we may consider very important. One factor in our assessment of the keywords issue is that we have limited awareness of future plans to extend; we cannot properly assess without more data than we presently have.
-
2 minutes ago, Rudy Velthuis said:No more. I hate introducing keywords when a library function/construct can solve things as well.
Historically, the growth of Delphi has been very spare in introducing new keywords, and that is one of its strengths.
- 1
-
11 minutes ago, Jacek Laskowski said:Of course, override generate other error:
[dcc32 Error] E2037 Declaration of 'Terminate' differs from previous declaration
Implementing an override to a virtual method the signatures must match. Your error is not from using override, but from changing the signature.
- 1
-
-
19 hours ago, Remy Lebeau said:Borland tried that once before. The CLX framework in Delphi 6 was a cross-platform version of the VCL. Most of the interfaces remained the same, just the internal implementations changed. That didn't work out so well for them, CLX had to be scrapped.
I was keen to get Kylix and thought CLX was a good start. I think what killed Kylix was the plethora of Linux distributions which added twists and turns from Borland's perspective. And for those of us testing the waters, the fact that there were only 3 distributions (if memory serves) on which Kylix was certified to work was daunting. Then there was the lack of components -- how many do anything non-trivial in Delphi without the use of third-party components?
And as to components, Delphi 1 offered no component in support of serial ports, at a time when almost anything which connected outside the PC used serial ports. That was remedied soon enough by the appearance of third-party components, but always struck me as evidence of blind spots in determining what the base components needed to be. Further, the component business has always been problematic, as Delphi must ship with components, and realistically must also add to its component sets over time, but then risks competing with the third-party vendors who are essential to Delphi's popularity.
I do not imagine in my wildest dreams that Embarcadero will do anything serious with open source. The Interbase exercise would be enough to make many take a wait and see position. Why invest in supporting an open source project which is closed again after some months?
-
12 minutes ago, Anders Melander said:I'm pretty sure many of the countries on the receiving end of US' forced friendship has a different view on that. Look to me like the US is actually also guilty of most of the issues you listed. I don't mind the US looking after its own interests, just don't pretend it's doing anything but that.
China is a complex issue. Sure it's bad in some areas, but it's slowly improving. It's a huge country and rapid change would cause the country to implode.
History shows that the US looking after its own interests has had us paying most of the costs of defense for Europe since WWII.
You are entitled to your own opinion, but not your own facts.
That said, this thread is wildly off topic, and I will write no more of this.
-
On 3/20/2019 at 9:02 AM, Uwe Raabe said:Are people still using that old component pallet?
Truly a bit surprising, but if they continue to include that old palette, then they should at least ensure that it works.
-
11 hours ago, AlekXL said:Please! What are you afraid of? What our Chinese brothers could possibly copycat? And for what end? Currently there isn't anything special in Delphi compiler itself. In the past, in years of its youth and glory, yes, Delphi was a conceptual breakthrough.
Combativeness is not a tool of persuasion. As to China, wake up and smell the tea. They plan to dominate us as soon as possible, and technology is at the heart of their interests.
-
7 hours ago, dummzeuch said:Actually, since qry.next will be executed at the end of the loop, I think the C style for loop syntax is inconsistent.
Many years ago, I knew an instructor form UC Santa Cruz who could speak endlessly on the irregularities of C syntax, which are legion.
-
15 minutes ago, AlekXL said:And opensourcing the compiler does not mean EMBT loses it's exclusive copyright. Learn to read
There you go again, charming those you wish to persuade. As a matter of fact, however, your desire that the compiler be open sourced in no way justifies your assertion that it needs to be open sourced.
-
45 minutes ago, David Schwartz said:It's still GPF in my mind! I have no idea when they renamed it. IIRC, GPFs were frequently accompanied by BSODs, which still happen every now and then. (I'll let someone ask what they are... )
It is still GPF under the covers, as in the Wikipedia article here:
https://en.wikipedia.org/wiki/General_protection_fault
The jargon comes from the x86 CPU family. The AV term is discussed here:
https://en.wikipedia.org/wiki/Segmentation_fault -
12 minutes ago, Dany Marmur said:I just cannot stop myself (apologies in advance);
What did you expect from a vendor called "ErrorSoft"!?!
I did really really try NOT to post this. Sorry.
You saved me form the same temptation!
-
2 hours ago, AlekXL said:Win friends among whom? You should learn to think, not just read. I am winning friends with this very sentence, among those who can vote.
And votes are essential in this case
While you antagonize those who will make the actual decision? Votes can be ignored, and have been for years.
- 3
-
20 minutes ago, Dany Marmur said:I think the language was CBasic and the OS was CP/M.
If we discuss having used those, we date ourselves. 😉 I still have my TP1 for Z80 manual.
-
20 minutes ago, Dany Marmur said:Exit is brilliant in fuctions. Otherwise, i tend to agree it's a bit finicky.
I like repeat for some special cases. But every time i did a repeat it was to get rid of some local vars needed in a while.
Repeat IMHO should require a begin-end block IMHO to be consistent with the other program control keywords.
Exit, Break, and Continue all seem to me to be structured GOTOs. They interrupt the flow, but in a well ordered way. Well, at least when used properly, it is well ordered.
- 1
-
1 minute ago, Dany Marmur said:Yes, what i meant, exactly. IT-folks that bring them in and give them free reign should also have a bashing.
Does no one read Alan Cooper any more?
- 1
-
On 4/3/2019 at 4:56 AM, dummzeuch said:There are a few things that every single one of our internal programs should do:
- Every dialog should be sizeable if it makes any sense at all. Delphi makes that easy with the Align and Anchor properties. Ask yourself the following questions. If you answer any of them with Yes, ...
https://blog.dummzeuch.de/2019/04/03/things-that-every-desktop-program-should-do/
I would add that any dialog which reports an error condition should allow the user to copy the text to the clipboard.
- 2
-
1 hour ago, Mike Torrettinni said:GPF?
General Protection Fault. An exception, and a term not often seen in current discussions.
- 1
-
My apologies. The toolbar in question is in CnPack, not in GExperts.
- 1
-
6 hours ago, Dalija Prasnikar said:You started with prefer, now you have come to always... and you are conditioning yourself to use composition without considering inheritance... you should consider both at the same time. There are always trade offs and you have to take those into account. If you start with composition and say, OK composition can solve this problem, I am all done, at some point you will make wrong choice because sometimes inheritance will be better fit. Now, I could be wrong, I don't know what is in your head...
(snip)
I don't know how many times I used inheritance over composition or vice versa, I am not counting... it is irrelevant... even if 90% of the time composition is better, that still leaves you with 10% where it is not.
Rules are made to be broken. (Except this one!)
Consider the "Law" of Demeter. which proposes that drilling down through layers is a bad thing. Then consider: MyCaption.Font.Color := clRed;
Does it really make sense to have to write:
_font := MyCaption.Font;
_font.Color := clRed;
And if layers of dotted notation makes for bad practice, then what does that make of Fluent coding?
Sometimes, inheritance is the best choice, but the deeper the inheritance -- in my view -- the more likely it was a bad choice.
Sometimes composition is the best choice, but things become murky when some of the members are best assigned dynamically; then you need also consider whether Property DI is a better choice than Parameter DI.
And sometimes, a simple function is just fine.
-
1 minute ago, Rafael Mattos said:Hi, how are you?
I have a get method with the return of a TJSONArray and that object is not destroyed. And when I destroy at the end of the function and raised an exception.
How do I release this object from memory?
Thanks in advance.
The function returns it, so cannot free it. The caller owns the instance, and must free it.
-
I hid the Procedure List Toolbar, and cannot find how to unhide it. Can you help me recover from that blunder?
-
1 minute ago, RussellW said:Slightly off topic. Using a Date of 0 is fine in certain circumstances but sometimes you might need that actual date rather than meaning that no date is set. Developer Express have a NullDate constant which is -700000 ... very useful
A completely unrealistic negative number which is easily recognized -- would be the sort of flag I would use. Although, in my work, all meaningful dates will be later than 1950, so not really a problem.
-
2 minutes ago, dummzeuch said:- Kick the person who bought this component without source. (Who was / is an idiot, nobody did that even back when Delphi 7 was new.)
In my case, it was worse. All evidence suggested that we had no source because we (probably) had no license.
- 1
Please vote - SonarCube support
in Delphi Third-Party
Posted
One issue I note with Pascal Expert is that the supported versions begin with D2007 on some pages, and D2009 on others. I noticed because I am still very active in D2007, which FixInsight supports with no problem.