On Thursday, 18 November 2021 at 22:20:48 UTC, pascal111 wrote:
In next program that rewrites original written texts into new
files, I see that it may need some additions or we can accept
it like this because it's just a simple program that achieve
its task and doesn't need any philosophical
On Thu, Nov 18, 2021 at 10:20:48PM +, pascal111 via Digitalmars-d-learn
wrote:
> In next program that rewrites original written texts into new files, I
> see that it may need some additions or we can accept it like this
> because it's just a simple program that achieve its task and doesn't
>
In next program that rewrites original written texts into new
files, I see that it may need some additions or we can accept it
like this because it's just a simple program that achieve its
task and doesn't need any philosophical additions.
Example:
Original text:
Learning C doesn't impact
On 11/18/21 2:58 PM, Jordan Wilson wrote:
On Thursday, 18 November 2021 at 16:08:22 UTC, Paul Backus wrote:
On Thursday, 18 November 2021 at 13:51:42 UTC, Martin Tschierschke wrote:
[...]
You can define a `toString` method, like this:
```d
string toString()
{
import std.conv;
return
On Thursday, 18 November 2021 at 16:08:22 UTC, Paul Backus wrote:
On Thursday, 18 November 2021 at 13:51:42 UTC, Martin
Tschierschke wrote:
[...]
You can define a `toString` method, like this:
```d
string toString()
{
import std.conv;
return p.to!string;
}
```
You can find more
On Thursday, 18 November 2021 at 13:51:42 UTC, Martin
Tschierschke wrote:
Hello, if you take the example from the home page, with the
additional last line:
```d
struct Point
{
private double[2] p;
// Forward all undefined symbols to p
alias p this;
double dot(Point rhs)
{
Hello, if you take the example from the home page, with the
additional last line:
```d
struct Point
{
private double[2] p;
// Forward all undefined symbols to p
alias p this;
double dot(Point rhs)
{
return p[0] * rhs.p[0] + p[1] * rhs.p[1];
}
}
void main()
{