3 ms·
Fun-fact: if you compile VB.NET code that uses On Error Resume Next it results in output IL that wraps every statement in its own try/catch+swallow block.
by DaiPlusPlus 3y ago
Fun-fact: if you compile VB.NET code that uses On Error Resume Next it results in output IL that wraps every statement in its own try/catch+swallow block.
- function_seven 3y agoWow. I didn’t know the .NET version still supported that. I remember it from VBA code in Excel and VB6 stuff way back when. I guess if I’m forced to support an “ignore all errors” feature, doing implicit try/catches in the IL is as elegant as it’s gonna get without having to maintain custom IL to support VB of all things. I do kinda miss VB6 though. I wish RAD was still a thing in desktop applications.
- rezonant 3y agoWelp that's horrible, I'll have nightmares about this.