Looking at the Kindle spec there appears to be an error in the
section for structs called Assignment Overload.
S* opAssign (ref const S s) {
a = s.a;
}
gives an error:
Error: cannot implicitly convert expression (this) of type S to S*
S opAssign (ref const S s) {
does compile.
On 12/18/2012 04:42 AM, js.mdnq wrote:
It looks like the approach 2 does what I'm looking for pretty nicely
except that, If I'm not mistaken the user struct will error out when
trying to access members from the master.
Another approach that works: http://dpaste.dzfl.pl/966d9f3a
(could have been
On 12/19/2012 11:35 AM, Ali Çehreli wrote:
> On 12/19/2012 01:58 AM, Rafael wrote:
>
> > my ... english.
>
> Thank you. Your English is very well.
Rather, "Your English is very good."
> > //Then I want to do something like
> > x = S[0..$, 1]; //get column
> > S[0..$, 2] = A[0..$, 2]; //get a
On 12/19/2012 01:58 AM, Rafael wrote:
> my ... english.
Thank you. Your English is very well.
> //Then I want to do something like
> x = S[0..$, 1]; //get column
> S[0..$, 2] = A[0..$, 2]; //get and set column
> auto B = A[0..10, 0..10]; //get submatrix block of matrix A
I don't know whether a
On Wednesday, 19 December 2012 at 16:50:05 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 16:19:28 UTC, Rafael wrote:
Yes, it is good solution, thank you! But anyway it means not
so nice and laconic syntax..
P.S. yes, I am killjoy :)
Awesome, glad i could help even with my limited kno
On Wednesday, 19 December 2012 at 16:19:28 UTC, Rafael wrote:
Yes, it is good solution, thank you! But anyway it means not so
nice and laconic syntax..
P.S. yes, I am killjoy :)
Awesome, glad i could help even with my limited knowledge, good
luck, don't understand the PS.
On Wednesday, 19 December 2012 at 15:19:01 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 14:08:25 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 13:28:24 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote:
1) It is possible to implement multiindex acc
On Wednesday, 19 December 2012 at 14:08:25 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 13:28:24 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote:
1) It is possible to implement multiindex access using
opIndex* methods, moreover this is the simplest way t
On Wednesday, 19 December 2012 at 13:28:24 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote:
1) It is possible to implement multiindex access using
opIndex* methods, moreover this is the simplest way to
multiindex access realization. So, we have [i, j, k] notatio
On Wednesday, 19 December 2012 at 13:34:52 UTC, John Chapman
wrote:
opIndex/opIndexAssign take multiple indices.
http://dlang.org/operatoroverloading.html#Array
Yes however i believe the OP also wants to provide multiple
slices as well as multiple indices. Atleast as far as i can tell.
On Wednesday, 19 December 2012 at 13:34:52 UTC, John Chapman
wrote:
opIndex/opIndexAssign take multiple indices.
http://dlang.org/operatoroverloading.html#Array
Yes, but slices - not, and my initial question was about it.
On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote:
1) It is possible to implement multiindex access using opIndex*
methods, moreover this is the simplest way to multiindex access
realization. So, we have [i, j, k] notation. Next step after it
- slices implementation and it looks logi
Thanks for all those replies, they really help :)
Sonia.
On Wed, Dec 19, 2012, at 7:05, Artur Skawina wrote:
> On 12/18/12 20:23, Mike Parker wrote:
> > On Tuesday, 18 December 2012 at 19:21:09 UTC, Mike Parker wrote:
> >> On Tuesday, 18 December 2012 at 18:24:03 UTC, Sonia Hamilton wrote:
> >>
>
On Wednesday, 19 December 2012 at 11:59:24 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 10:33:38 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 10:25:23 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 10:17:28 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 09:58:37 U
On Wednesday, 19 December 2012 at 10:33:38 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 10:25:23 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 10:17:28 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote:
//Then I want to do something like
x = S[0..$
On Wednesday, 19 December 2012 at 10:25:23 UTC, Rafael wrote:
On Wednesday, 19 December 2012 at 10:17:28 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote:
//Then I want to do something like
x = S[0..$, 1]; //get column
S[0..$, 2] = A[0..$, 2]; //get and set colum
On Wednesday, 19 December 2012 at 10:17:28 UTC, Nekroze wrote:
On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote:
//Then I want to do something like
x = S[0..$, 1]; //get column
S[0..$, 2] = A[0..$, 2]; //get and set column
auto B = A[0..10, 0..10]; //get submatrix block of matrix A
On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote:
//Then I want to do something like
x = S[0..$, 1]; //get column
S[0..$, 2] = A[0..$, 2]; //get and set column
auto B = A[0..10, 0..10]; //get submatrix block of matrix A
Warning the following is my total noob opinion.
Instead of usi
Hi, all!
In advance, excuse me for my terrible english.
I try to learn the D language. One of the areas of my work is
numerical calculations, and there are lot of linear algebra
objects and operations. For beginning I started with
implementation of matrix calculations. Note, that I am doing th
in my own opinion I'd think that having a centralized
index and package tool (much like ruby's "gem", python's "pip",
lua's
"luarocks") would be a better way of handling the issue - I
remember seeing
a bit of talk about this some months (years?) ago but have
since been too
busy to worry abou
20 matches
Mail list logo