ddwChucklib-livecode icon indicating copy to clipboard operation
ddwChucklib-livecode copied to clipboard

Wrong character in wildcard pool throws confusing parsing error

Open jamshark70 opened this issue 7 years ago • 0 comments

(
BP(\x).free;
PR(\abstractLiveCode).chuck(BP(\x), nil, (
	defaultParm: \degree,
	parmMap: (degree: (isPitch: true)),
));
)

/x = "\ins("", "*", 16, 0.25)";  // OK, but...

/x = "\ins("", ".", 16, 0.25)";

ERROR: Message 'item' not understood.
RECEIVER:
   Character 46 '.'

".", for a pitched parameter, is read as an articulation pool string, not an item string -- which is incompatible with item strings.

The fix, I think, will be for generators to publish expectations about inputs. Bigger fix than I can do right now.

jamshark70 avatar Feb 07 '18 00:02 jamshark70