I have a question regarding the set(id,e) function.
I'm not able to complete scenario 4 of the provided tests. I have a problem with this section
Code: Alles auswählen
Let('driver, New('Driver), Seqn( Call('driver, 'drive, 'bike), Set('driver, New('LongDriver)), Call('driver, 'drive, 'bike))), Call('bike, 'speed))
I was thinking it should be something like this:
- current program is in a class (checking via env('this)) => field name in the class exists => replace the fieldValue
- not in a class || no field name exists => check for env(id) and update the value
Thanks and cheers