[proto] Proto Transform Questions

2011-01-15 Thread Nate Knight
I've pasted some code below where I am trying to transform expressions of the form (a op b op c)[i] to (a[i] op b[i] op c[i]) I managed to get this to work for the simple case (a+b)[i] but I'm curious about how to generalize this to include other operators (without explicitly handling

Re: [proto] Proto Transform Questions

2011-01-15 Thread Eric Niebler
On 1/15/2011 6:41 AM, Nate Knight wrote: On Jan 14, 2011, at 12:29 PM, Nate Knight wrote: I've pasted some code below where I am trying to transform expressions of the form (a op b op c)[i] to (a[i] op b[i] op c[i]) I managed to get this to work for the simple case (a+b)[i] but