Yes, the syntax you proposed already works. Try it out.

--Tim

On Tuesday, September 29, 2015 06:42:36 PM Tom Lee wrote:
> Is there any way to restrict a type parameter to a particular bitstype, or
> is this planned in the next type design iteration? eg:
> 
> type FixedVector{T<:Number, n::Integer}
> data::NTuple{n,T}
> end
> 
> 
> You can achieve this by adding checks in the constructor, but doing so
> always makes things so untidy.

Reply via email to