Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread common programming bug, comparison versus assignment
Sun, Feb 28 2021 10:27 AMPermanent Link

erickengelke

Avatar


EWB3 doesn't catch if you do a comparison when you intend an assignment.

EWB2's compiler magic would catch the following comparison which was meant to be an assignment

  Form1 = nil;

but EWB3 doesn't catch this programming bug.  It evaluates the expression as a boolean and carries on.

This tripped me up the other day because I forgot the colon a few times.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image