-
Content Count
2637 -
Joined
-
Last visited
-
Days Won
91
Posts posted by dummzeuch
-
-
34 minutes ago, PeaShooter_OMO said:Pointers should not be avoided and I highly suggest programmers should learn to use them properly and embrace them. They can make life so much easier.
Pointers have their uses, but they come with risks.
Skilled programmers know how and when to use them, but most important, they don't use them when they are not necessary. They also know that pointers can make debugging hell.
Unfortunately there are many programmers who use pointers where they are not necessary. Of course they still think they are skilled, because they use pointers.
-
3 hours ago, Remy Lebeau said:I would do something like this:
[mru] count=N path1=... path2=... ... pathN=...
Keep adding new paths to the front of the list until the desired count is reached, then remove the oldest path from the end of the list each time a new path is added.
Alternatively omit the Count entry and simply read all entries in the section [mru].
-
Are you talking about just the tabs for Code, Design and History? No, these cannot be hidden.
But if you are talking about the docked windows below that, containg messages, refactoring etc, you can undock that window and dock it somewhere else (I dock most of these on the right hand side) or simply close it. Don't forget to save the desktop otherwise it will pop up again any time the desktop is loaded.
-
I doubt that it is this "helpful" Windows functionality. I start Delphi 10.2 and 2007 a lot more often than Delphi 12 and they don't show up there.
-
Is that just me or is Delphi adding itself to the main list of the Windows Start menu every time the IDE is started?
Is there an option to disable this annoying behaviour? My start menu is full enough, I don't need additional entries that come back even when deleted.
-
19 minutes ago, Sherlock said:Or you could go a different way and choose to use the GExperts code formatter. It knows source directives to prevent code formatting.
And also, in the most recent source code (no release yet, maybe this weekend, but no promises), it supports multiline strings.
- 1
-
That's actually the same frame which is shown in these two dialogs. If a project is loaded, you are viewing and possibly changing the project's configuration. If no project is loaded, you are viewing and changing the default packages loaded by the IDE without a project and for new projects. As far as I remember that has always been the case.
(Or I might have misunderstood you.)
-
3 hours ago, FreeDelphiPascal said:Other proposals then?
If we cannot do anything, then Embarcadero owns us.
They do. As long as you haven't got an alternative development environment for the work you rely on, you will have to pay for Delphi or stay with an older version.
- 3
-
On the first page of the wizard, there is a button for doing that, somewhere on the bottom left. I can't look up how it is called now because the installer wants to uninstall everything first when I start it now.
-
11 minutes ago, Andrew Spencer said:Why is this not functioning in the same way as if the type declaration was in the unit itself?
That's for historical reasons. And with the "new" strict keyword even this can be prevented.
If you only want to access the Canvas property you can change your TGetCanvas class to this:
type TGetCanvas = Class(TCustomControl) published property Canvas end;
This is used by all the classes that derive from TCustomControl to publish protected Canvas property, so it will always work.
- 1
-
7 minutes ago, Der schöne Günther said:VS Code's frontend, for example, can run on any device (like an iPad) while the backend (compiler, linter, ...) runs elsewhere (like a computer, the raspberry in my broomcloset or in the cloud).
That's not really an editor feature, is it?
-
10 hours ago, JonRobertson said:But I do not care for the Delphi IDE integration. I use the Explorer integration and have TortoiseGit configured to use BC.
I wrote my own IDE "integration" using the tools menu a few years ago. Scooter Software actually contacted me about it when they ware approached by Embarcadero to license BC for the IDE integration. I like to think that my simple work was what sparked the idea.
Having said that I don't like the IDE integration either. Its complicated to use.
-
That was easier than I thougth: As of revision #4112 the formatter now actually does support multi line string literals. And only those unit tests that already failed still fail. Of course that does not mean that I have not broken anything else.
You are welcome to build your own dll and test it.
- 1
- 1
-
I expected this but just confirmed it:
The GExperts code formatter does not handle multi line strings correctly (bug #337)For now the workaround is using the comment to prevent formatting ... read on in the blog post
-
On 11/24/2023 at 1:02 PM, baka0815 said:Does this also apply to inline variables inside begin/end blocks or only to try..except/finally blocks?
Inline variable declarations in begin end blocks already worked fine.
-
-
8 hours ago, JonRobertson said:I have Beyond Compare installed with Delphi IDE integration. Unfortunately I am not a fan of BC's Delphi integration. It has bit me more than once.
Did you know that the limited Beyond Compare that comes with Delphi, can be used to show the differences of two arbitrary files? Just start it with parameters or even just start it and use drag and drop to diff the files. I have even configured it in TortoiseSVN as the diff viewer.
-
8 minutes ago, Dalija Prasnikar said:Inlay parameter hints. It is extremely useful for reading and understanding the code https://www.jetbrains.com/help/idea/inlay-hints.html#change-inlay-hints-appearance
Hm, I have just read through that page and another one but I'm not quite sure whether I would find inline hints useful or annoying. I'd probably have to try it.
-
I've moved this to a new topic because it is not much related to Delphi 12 being released.
1 hour ago, Dalija Prasnikar said:2 hours ago, dummzeuch said:OK, so what are examples for editors that are not "stuck in the Stone Age"?
Anything from JetBrains...
I am not saying that Delphi is stuck in the Stone Age... but it is lagging behind in some areas.
OK, I bite: What's your favorite feature(s) in a JetBrains editor that Delphi does not offer? (Excluding things that Delphi offers but that don't work.)
-
12 hours ago, PeterPanettone said:The most significant handicap in Delphi, in my opinion, is the editor, which is still stuck in the Stone Age.
OK, so what are examples for editors that are not "stuck in the Stone Age"?
-
1 hour ago, Miko330 said:try var a := 2; test(a); finally end;
becomes :
try var a:=2; test(a); finally end;
I don't know if this is the right method:
after adding 2 lines in 'GX_CodeFormatterFormatter.pas' at line 1633
-------------------------------------------------------------------------
end else if (FPrevToken.GetExpression(exp) and SameText(exp, 'for')) then begin // for with inline var declaration end else if (fStack.GetTopType = rtTry) then begin // inline var declaration inside Try/finally block end else begin
---------------------------------------------------------------------------
everything becomes good with the right indentation inside Try/Finally.
Just to confirm: Your first example is how you think it should be formatted?
-
HKLM\Software\Microsoft\Windows NT\CurrentVersion
ProductName: REG_SZ
On my Windows 10 pro it says "Windows 10 pro".
There are several other entries that might be of interest, e.g. DisplayVersion="22H2".
Of course this can easily be manipulated by an administratorl
-
Remove matching lines
- 1
-
49 minutes ago, FreeDelphiPascal said:some of them (like multi line strings or colored lines between begin/end) were already availalbe since 100 years ago via IDE plugins.
Which plugin provided multiline strings? Or are you talking about the property editor for multipline strings?
Syndey and Athens in same PC
in Delphi IDE and APIs
Posted
You can install all main versions of Delphi in parallel. Since Delphi 10.4 (Sydney) and Delphi 12 (Athens) are both main versions, you are fine.
Note though, that Delphi 12 will register itself for opening all Delphi related files so double clicking on a project will open it in Delphi 12 which might not be what you want.
(All 10.x Versions (10.0 .. 10.4) were main versions, 10.x.y versions were updates to 10.x. Fortunately Embarcadero has stopped this silly numbering scheme now, but we have to live with that legacy.)