Setting a Breakpoint on an Exit Statement- Delphi 239

  Рет қаралды 780

Alister Christie

Alister Christie

Күн бұрын

Пікірлер: 8
@pmcgee003
@pmcgee003 2 ай бұрын
I'd argue that, especially in this case, it'd be more logical and pleasingly symmetric code to use exit(string result) on every line, and delete the empty result initialisation. 🙂 If the code changes, the compiler should warn us (I think) if we might be exiting without assigning a return value.
@aarondcmedia9585
@aarondcmedia9585 2 ай бұрын
For youtube search results, do you think "Setting a breakpoint on an exit statement" would be more successful as a video title?
@Graham_Wideman
@Graham_Wideman 2 ай бұрын
I agree -- this video is not about "you" nor "stopping", it's about the debugger breaking. The current title sounds more like advice about driving your car on the motorway! Nonetheless a useful tip.
@codegearguru
@codegearguru 2 ай бұрын
Done. Thanks. I don't always get to spend much time thinking about a title, or description. It's about having a window of time to record something, and getting it all done. I did make a thumbnail though, so progress?
@aarondcmedia9585
@aarondcmedia9585 2 ай бұрын
@@codegearguru good progress!
@exeware
@exeware 2 ай бұрын
It doesn't breakpoint because it's a compiler optimization, if you start using exit(0) just to be able to stop you're missing a good optimization.
@codegearguru
@codegearguru 2 ай бұрын
Certainly if it's something that's being called extremely frequently, but these days, I go for maintainability just about every time.
@trnod
@trnod 2 ай бұрын
Just put a comment behind the Exit; where you threatens to start using C++ instead... That will make the compiler step up its game...
Build Notepad.exe in Delphi - Delphi 231
34:29
Alister Christie
Рет қаралды 2,6 М.
Logging Using Dependency Inversion - Delphi 238
42:21
Alister Christie
Рет қаралды 1,2 М.
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 38 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 138 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
Why Is Array/Object Destructuring So Useful And How To Use It
13:24
Web Dev Simplified
Рет қаралды 429 М.
Chord VCL Delphi
3:09
delcpy
Рет қаралды 49
Delphi - Validate empty field
6:48
Delphi for Schools
Рет қаралды 1,3 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 181 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 671 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 336 М.
Re-Coloring Bitmaps with Correct Alpha Transparency - Delphi 240
8:13
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 83 М.
Ways to Improve VCL Rendering Times - Delphi 236
10:37
Alister Christie
Рет қаралды 1,4 М.
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 38 МЛН