Search

November 06
Learn »
...the latest code that works:

```d
void main()
{
  Short foo = { 21 };

  foo *= -1;

  foo = foo...
November 06
Learn »
...have to correct my mistake:


```d
void main()
{
  Short foo = { -21 };

  s *= -1;

  foo = foo...
November 06
Learn »
...kind might be a solution:

```d
void main()
{
  Short foo = { -21 };
  foo = foo * -2;
  assert...
November 06
Learn »
...t these two act the same?

void main(){
    short i = 1;
    i *= -1;  // Works
    i...
November 05
Issues »
...std.stdio : writeln;
import std.bigint;

void main() {
  BigInt a = BigInt("0");                    // 0
  BigInt b...
November 05
Learn »
...short`


For:

    import std.stdio : writeln;

    void
    main() {
        short s = -5;
        s = -s;
        writeln(s...
November 05
Issues »
...string op : "+")(A rhs){
     return B();
   }
}

void main() {
  C c;
  B b = c + A();
}
```

I...
November 04
General »
...blob/main/utilities.d)
  - **Documentation:** [utilities.md](https://github.com/royalpinto007/d-drafts/blob/main...
November 03
Learn »
...It's a matter of preference. The main gotcha there is that if an attribute...
November 03
DIP Ideas »
...typedef struct {
    size_t counter;
} S;


int main()
{
  assert(Four == 3);
  auto arr[] = { One, Two...
5 6 7 8 9 10 11 12 13 14 15 16
Next ›   Last »