Just noting here that I've been thinking of allowing two uses for object[ index ]
memoryblock[integer] should be usable to read/write from the slot with that number in a memory block
object['@sensableattribute'] should compile to a sensor command to read @sensableattribute in object. We already allow most current/future sensable attributes via object.sensableattribute but this may not work for future attributes that contain underscores. I also have yet to check whether mlog allows dynamic assignment of attribute type, e.g. as in the following pseudocode, but if it does, we'd need some syntax like this to have any hope of allowing it:
Just noting here that I've been thinking of allowing two uses for
object[ index ]
memoryblock[integer]
should be usable to read/write from the slot with that number in a memory blockobject['@sensableattribute']
should compile to a sensor command to read@sensableattribute
in object. We already allow most current/future sensable attributes viaobject.sensableattribute
but this may not work for future attributes that contain underscores. I also have yet to check whether mlog allows dynamic assignment of attribute type, e.g. as in the following pseudocode, but if it does, we'd need some syntax like this to have any hope of allowing it: