> Sorry Luca, but I noticed an abnormal behaviour about value? > > Look at the following code: > > >> a: make object! [ q1: 100] > >> value? 'a/q2 > =3D=3D true > > > It seems Rebol cannot correctly get info about a word inside an object. > I even tried the following code: > > >> value? a/'q2 > ** Script Error: Invalid path value: q2 > ** Where: halt-view > ** Near: value? a/'q2 > > My problem is the words I need to check if they are assigned, they are > contained in an object. > > How can I solve?
You have to descend into the object and verify if the word exists. You have two ways... >>aa: make object! [bb: 1] >> none? in aa 'bb == false >> none? in aa 'cc == true >> none? find first aa 'bb == false >> none? find first aa 'cc == true -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
