-
Content Count
3710 -
Joined
-
Last visited
-
Days Won
185
Posts posted by David Heffernan
-
-
8 minutes ago, Cristian Peța said:Now I see that stdcall will force to put on stack the reference to TSystemTime.
Without stdcall the reference will be passed in EAX registry.
Maybe D7 is not using EAX and will put the reference on stack also without stdcall.
This is wrong on D7 too. Don't believe everything you read.
-
1
-
-
Are you setting every field in st? Looks like you didn't set DayOfWeek. It's a Wednesday, the 12th June. Doesn't seem worthwhile calling StrToDateTime and the DecodeDateTime when you can just set the fields directly.
-
On 6/5/2024 at 8:36 AM, Jim McKeeth said:I know the reFind utility by Embarcadero has a narrower focus on just FireDAC migrations, but that is something else Delphi Parser does too. I'm curious if with a little work reFind could accomplish a lot of the other functionality as Delphi Parser.
Isn't this just grep?
-
1 hour ago, TimC said:Mr. Heffer
How does one write code not relying on object names?
You use variables which contain references to them.
-
Another good reason not to write code which depends on the string name of objects.
-
8 hours ago, Remy Lebeau said:You need to de-couple the classes so they don't refer to each other directly anymore. Use interfaces or events/callbacks instead.
Interfaces and callbacks might be the solution, but I'm always very sceptical of people who will tell you the solution to a problem that hasn't been clearly stated.
-
Hard to answer without seeing how the classes and types are defined
-
3
-
-
3 hours ago, FreeDelphiPascal said:Come on David, you know it worth trading the "less convenient" way of programming in Delphi, for the speed we get from a Delphi program. I won't even dare to put Python in the same speed chart as Delphi....
🙂
You are trolling here right?
-
This entire thread is utterly pointless. Just submit a feature request. Yapping here won't change anything. Or are you just here for the yapping?
-
3 hours ago, PeterPanettone said:Do you mean it was negligence by the IDE programmers at Embarcadero?
Submit a feature request
-
52 minutes ago, Tom F said:The desktop shortcut created by the installer does NOT have "Run this program as admin" checked. (Good thought , though!)
Running bds.exe from the File Explorer has the same problem.Right click on bds.exe and check what its compat settings are too
-
1 hour ago, dummzeuch said:Yes. But only if they are simple types or (for complex types like large records or arrays) if they are passed by reference (var/const).
I'm not sure that this is true.
-
14 minutes ago, dummzeuch said:Somehow I expected your opinion to be different from mine...
My opinions are independently formed though
-
45 minutes ago, Uwe Raabe said:Indeed, but they still reside in the interface section and thus may need some units being used in the interface section instead of the implementation section.
Not is the containing structured type is declared in the implementation section
-
20 minutes ago, dummzeuch said:Unless, of course you need a local type declaration that you don't want to be visible outside the unit.
Types can be declared inside structured types.
-
1 hour ago, dummzeuch said:In my opinion using this kind of variables falls into the same class as using break and continue in a loop. A little bit better than goto, a little bit worse than using exit.
Exit, Break and Continue are all good. No problem with them being used properly.
These local variables that are shared between local functions are very different because they tend to have larger scope that is harder to manage.
-
26 minutes ago, dummzeuch said:I use them sometimes as a convenient way not to pass too many parameters.
I always prefer to pass parameters because it makes it much clearer what the input/output of the function is.
Usually the so called convenience you refer to just leads to obfuscation.
-
3 hours ago, limelect said:@Kas Ob. @Anders Melander As what happens on the DPR I just edit (fix) the DPR and compile.
I moved from 7 to 10 where it started happening
It seems I am not the only one. Where is Embarcadero then?
P.S I have been with Delphi since #1
I honestly can't make any sense of this text. Is it just me?
-
IDE form designer has been doing this sort of thing for over a decade with VFI
-
Guys, he just wants somebody to convert the code ASAP!!
-
12 minutes ago, dummzeuch said:ahem:
just saying ...
This isn't the place to hire programmers is it
-
It seems unlikely that somebody will write your program for you. Why don't you pay a programmer to do it?
-
Doesn't seem like you want help. It seems like you want somebody to do it. I definitely recommend getting a programmer involved.
-
1
-
-
Maybe you need to get a programmer on your team?
Changes in System.sysutils.pas were not reflecting in other unit in Delphi 11
in General Help
Posted
Your code might appear to work on D7 but that's by chance.
What I'm surprised at is why anyone is still talking about this. Who cares. Why do people want to work out what happens whe calling conventions don't match.