Use of local:: scope in constraints

When using constraint , if variable name in local scope is same as random variable name in class which is randomized it results in error in constraint resolution. In this case , it is better to use local:: scope for local variables in constraints . Here is example .

 

Here , if local :: scope is not used then it will result in randomization failure.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s