Le dimanche 05 novembre 2006 à 11:47 -0800, Richard Harke a écrit : > I have been working my way through the book. The first version of > drawRibbons (Section 10.2, page 487) seems to work as described. > The second version (section 10.3, page 489) produces some error > messages which I don't understand. The following is the session. > (after a )clear all)
> > (1) -> )read ribbons > drawRibbons(flist, xrange, yrange) == > sp := createThreeSpace() > num := # flist > yVar := variable yrange > y0:Float := lo segment yrange > width:Float := (hi segment yrange - y0)/num > for f in flist for color in 1..num repeat > makeObject(f, xrange, yVar=y0..y0+width, > var2Steps == 1, colorFunction == (x,y) +-> color, > space == sp) ^ You have to indent this line (it will be be considered as a continuation of the previous line) or use an underscore (line continuation character), so: makeObject(f, xrange, yVar=y0..y0+width, var2Steps == 1, colorFunction == (x,y) +-> color, space == sp) or makeObject(f, xrange, yVar=y0..y0+width, var2Steps == 1, colorFunction == (x,y) +-> color,_ space == sp) With an underscore the indentation does not matter. I don't know if your code used to work in the past. Greg _______________________________________________ Axiom-developer mailing list Axiom-developer@nongnu.org http://lists.nongnu.org/mailman/listinfo/axiom-developer