01.07.2012 0:06, Vidar Wahlberg пишет:
On Saturday, 30 June 2012 at 19:35:33 UTC, Denis Shelomovskij wrote:
Thanks for the tip, that is interesting (I'm surprised I didn't come
across this post when searching for this issue earlier). Although it
seems to me that you still end up with matrix[x,
On Sunday, 1 July 2012 at 09:52:22 UTC, Denis Shelomovskij wrote:
01.07.2012 13:46, Denis Shelomovskij пишет:
So I deliberately disallow rule
`matrix[x]` means `matrix[x, R[]...]`
and made `byTopDimension` property for such iteration:
On Sunday, 1 July 2012 at 09:46:52 UTC, Denis Shelomovskij wrote:
I'm curious why do you need such syntax? `matrix[x][y][z]`
expression means that `matrix[x]` is also a valid expression
but it shouldn't.
It's not a syntax I need, it's a syntax I desire as that's the
syntax I'm used to for
01.07.2012 16:02, Vidar Wahlberg пишет:
On Sunday, 1 July 2012 at 09:46:52 UTC, Denis Shelomovskij wrote:
I'm curious why do you need such syntax? `matrix[x][y][z]` expression
means that `matrix[x]` is also a valid expression but it shouldn't.
It's not a syntax I need, it's a syntax I desire
On Sunday, 1 July 2012 at 12:21:59 UTC, Denis Shelomovskij wrote:
No, that is the syntax you used for arrays of arrays.
In D, yes. In other languages I'm familiar with, such as Java,
that syntax is used for rectangular arrays. I've grown to like
the syntax as used in Java and I wanted to
On 06/30/12 22:06, Vidar Wahlberg wrote:
Although it seems to me that you still end up with matrix[x, y, z] instead
of matrix[x][y][z], so it will only solve one half of the problem :)
For this particular case I'll just do the conversion from two-dimensional to
one-dimensional array
Le 01/07/2012 01:59, dnewbie a écrit :
import std.stdio;
alias void function(int) fooInt;
alias void function(long) fooLong;
int main(string[] args)
{
fooInt f1 = foo;
fooLong f2 = foo;
f1(1L);
f2(1L);
return 0;
}
void foo(int i)
{
writeln(foo(int i));
}
void foo(long i)
{
writeln(foo(long
I'm using the built-in curl library on Linux i'm getting linker
errors. I've installed libcurl4-openssl-dev and it works fine as
i can successfully compile a sample program. However when using
the D lib i get these errors:
[quote]
:!rdmd api_test.d
On Sunday, 1 July 2012 at 12:21:59 UTC, Denis Shelomovskij wrote:
No, that is the syntax you used for arrays of arrays.
In D, yes. In other languages I'm familiar with, such as Java,
that syntax is used for rectangular arrays. I've grown to like
the syntax as used in Java and I wanted to