ostap / comp

a tool for querying files in various formats
MIT License
43 stars 2 forks source link

passing expressions as attribute names #7

Open ostap opened 11 years ago

ostap commented 11 years ago

accessing a field of an object (e.g. obj["field"]) can only be done using string literals (e.g. "field"). this enhancement should enable passing expressions as attribute names, (e.g. "field" ++ N). keep in mind that this change should not impact the performance, in other words obj["field"] should be evaluated at the same speed as it is today. this could be achieved by generating different instructions for the vm.