template NDimensionalArrayType(T,alias size)
I'm wondering what alias size does? I can't find that form
documented anywhere, but it seems to be valid.
Thanks.
--rt
And since alias can represent any symbol,i think that it's
correct usage.
On Monday, 11 March 2013 at 00:10:46 UTC, Rob T wrote:
template NDimensionalArrayType(T,alias size)
I'm wondering what alias size does? I can't find that form
documented anywhere, but it seems to be valid.
Thanks.
--rt
It's just a little hack for known bug - only string and integer
value
On Monday, 11 March 2013 at 00:10:46 UTC, Rob T wrote:
template NDimensionalArrayType(T,alias size)
I'm wondering what alias size does? I can't find that form
documented anywhere, but it seems to be valid.
http://dlang.org/template.html#TemplateAliasParameter
On Monday, 11 March 2013 at 00:26:25 UTC, anonymous wrote:
On Monday, 11 March 2013 at 00:10:46 UTC, Rob T wrote:
template NDimensionalArrayType(T,alias size)
I'm wondering what alias size does? I can't find that form
documented anywhere, but it seems to be valid.
Hi!
this code fails with message:NDimensionalArray.doIndex(Array) if
(is(Array _ : NDimensionalArrayType!(T,s),const(int[]) s)) cannot
deduce template function from argument types
!()(int[2u][2u],const(int[]))
Tell me please,am I wrong?
And if yes,what should I change to make it work?
template NDimensionalArrayType(T,alias size)
I think your use of alias size is incorrect.
See http://dlang.org/declaration.html
--rt
this code fails with message:NDimensionalArray.doIndex(Array)
if (is(Array _ : NDimensionalArrayType!(T,s),const(int[]) s))
cannot deduce template function from argument types
!()(int[2u][2u],const(int[]))
Tell me please,am I wrong?
And if yes,what should I change to make it work?
I'm no D
On Saturday, 9 March 2013 at 23:05:56 UTC, Ivan Kazmenko wrote:
this code fails with message:NDimensionalArray.doIndex(Array)
if (is(Array _ : NDimensionalArrayType!(T,s),const(int[]) s))
cannot deduce template function from argument types
!()(int[2u][2u],const(int[]))
Tell me please,am I
Although of course I would want to know what's wrong with
constrait,because it protect doArray against incorrect using.
I don't worry about effiency very much,I just wanted to right
n-dimensional tree of intervals.And for doing it I needed
n-dimensional array with opIndex like it.
On Saturday, 9 March 2013 at 23:40:25 UTC, Zhenya wrote:
Although of course I would want to know what's wrong with
constrait,because it protect doArray against incorrect using.
I don't worry about effiency very much,I just wanted to right
n-dimensional tree of intervals.And for doing it I
11 matches
Mail list logo