Taylor, You need to use integers to index into arrays. If you declare 'var write: int', it should work.
Vassily On 05/04/15 07:47, Taylor Lehman wrote: > I’ve created the following array: > > config const capacity = 4; > > var buff$: [0..#capacity] sync real; > > > and am trying to write to the first element: > > var write: real; > > write = 0; > > var item: real; > > item = 5; > > buff$[write] = item; > > > > > And get the following error: > > > homework4/BoundedBuffer.chpl:21: error: unresolved access of > '[domain(1,int(64),false)] _syncvar(real(64))' by '[_syncvar(real(64))]' > > > What is the correct way to write values into buff$? > > > Thanks! > > Taylor > > > > > Sent from Windows Mail > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > > > _______________________________________________ > Chapel-bugs mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/chapel-bugs > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
