KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to know if the following code may ever fail with the access violation or if it's safe. Is the first member of the statement with AND operator always checked as first or may be (by some compiler optimization or something) checked the second one as first ? var Item: TSomething; procedure DoSomething; begin if Assigned(Item) and (Item.SomeProperty) then DoSomethingElse; end; Is the code above definitely safe ? Thanks!
Tags (comma-separated)
Save Edits
Cancel