Skip to content

Figure out a sane way to do resource release #3

@wundrian

Description

@wundrian

In particular, when I tear down after an error condition in DclStatement.cxx, I need to call close() on the table I've open()ed because that aquired a lock I need to release.

Thing is, the current code doesn't use exceptions at all. And it feels unnatural to pad everything in a try-catch block if there's no finally clause available.
OTOH, I can't use goto as this would require me to move all initializations to the front of the function. C99 was invented over a decade ago. I'm not going back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions