On Tue, Aug 15, 2000 at 09:05:46AM +1000, Jeremy Howard wrote:
[much above that I agree with]
> And then of course there's character
> set type attributes (eg 'utf8')... These are not constraints, but they all
> use the same notation.
Aye. Acatualy, :utf8 and such aren't attributes proper, but input
disciplines, which are closely related (and have yet to be RFCed).
> Finally, the attribute notation needs a way of taking parameters. For
> instance, the 'sparse' attribute needs a default value, and an optional
> 'sparsity index'. We need syntax that allows something like:
>
> my int @sparse_array : sparse(0,0.99) = ((0) x 50000 , 1);
Ahh, it does. See the attributes module. You're example would have to be
somthing like "my int @sparse_array : sparse((0,0.99) = ((0) x 50_000, 1));"
as the attribute's arguments have to be in a parenthesized phrase.
-=- James Mastros