Re: How can convert the folowing to D.

2016-04-01 Thread ZombineDev via Digitalmars-d-learn
On Friday, 1 April 2016 at 00:34:49 UTC, learner wrote: Hi, I have the following code in C++. rectangles.erase(rectangles.begin() + index); where rectangles is: std::vector rectangles; how can I do something similar in D. Learner. Also, if you are using std.container.array (which similar t

Re: How can convert the folowing to D.

2016-04-01 Thread learner via Digitalmars-d-learn
On Friday, 1 April 2016 at 01:09:32 UTC, Ali Çehreli wrote: On 03/31/2016 05:34 PM, learner wrote: Hi, I have the following code in C++. rectangles.erase(rectangles.begin() + index); where rectangles is: std::vector rectangles; how can I do something similar in D. Learner. import std.std

Re: How can convert the folowing to D.

2016-03-31 Thread Ali Çehreli via Digitalmars-d-learn
On 03/31/2016 05:34 PM, learner wrote: Hi, I have the following code in C++. rectangles.erase(rectangles.begin() + index); where rectangles is: std::vector rectangles; how can I do something similar in D. Learner. import std.stdio; void main() { int[] a = [ 1, 2, 3, 4, 5 ]; write

How can convert the folowing to D.

2016-03-31 Thread learner via Digitalmars-d-learn
Hi, I have the following code in C++. rectangles.erase(rectangles.begin() + index); where rectangles is: std::vector rectangles; how can I do something similar in D. Learner.