Number parameter restriction example
Posted: Fri Sep 07, 2012 10:38 pm
The Number Parameter Restrictions wiki entry presents examples of legal and illegal usage of number parameters. However, when I try compiling those examples, I get an error on one of the "Allowed" lines. Here's a demonstration of the problem:
Alas,
So who's right? The compiler or the documentation?
— Scott
Code: Select all
startshape begin
shape taper(number shrink) {
SQUARE []
taper(shrink) [size shrink] // Allowed, shrink is a number parameter
}
shape begin {
taper(0.9) [ ]
}
Code: Select all
$ cfdg taper.cfdg
Error in taper.cfdg at line 5 - This expression does not satisfy the number parameter requirement
— Scott