Don't use ~> for branches.
alpha@DESKTOP-RB97SA4 /tmp/dutils
$ dub build
Invalid SemVer format: stable.0.0
alpha@DESKTOP-RB97SA4 /tmp/dutils
$ nano dub.json
alpha@DESKTOP-RB97SA4 /tmp/dutils
$ dub build
Performing "debug" build using
C:\Tools\D\dmd_2.097.2\windows\bin\dmd.exe for x86_64.
On Friday, 12 November 2021 at 21:22:32 UTC, Ruby The Roobster
wrote:
On Thursday, 11 November 2021 at 01:57:10 UTC, rikki cattermole
wrote:
On 11/11/2021 2:13 PM, Ruby The Roobster wrote:
Branch ~master: Invalid SemVer format: testing.0.0
Branch ~testing: Invalid SemVer format: testing.0.0
Ve
On Friday, 19 November 2021 at 23:05:03 UTC, H. S. Teoh wrote:
On Fri, Nov 19, 2021 at 10:21:52PM +, pascal111 via
Digitalmars-d-learn wrote: [...]
When I compiled the code after adding yours, I found this
error message:
"untitled20.d:24:8: error: no property 'copy' for type
'ByChunk'
On Fri, Nov 19, 2021 at 10:21:52PM +, pascal111 via Digitalmars-d-learn
wrote:
[...]
> When I compiled the code after adding yours, I found this error message:
>
> "untitled20.d:24:8: error: no property 'copy' for type 'ByChunk'
>24 |.copy(outputFile.lockingBinaryWriter); // copy
On Fri, Nov 19, 2021 at 10:21:42PM +, Adam Ruppe via Digitalmars-d-learn
wrote:
[...]
> The OS functions for getch alone though are actually pretty simple:
>
> 1) change the terminal to "raw" mode. the default is to buffer lines,
> which means your application doesn't get anything until a lin
On Friday, 19 November 2021 at 22:21:52 UTC, pascal111 wrote:
On Thursday, 18 November 2021 at 23:09:28 UTC, H. S. Teoh wrote:
[...]
When I compiled the code after adding yours, I found this error
message:
"untitled20.d:24:8: error: no property 'copy' for type 'ByChunk'
24 |.cop
On Friday, 19 November 2021 at 17:36:55 UTC, BoQsc wrote:
Let's say I want to write a simple program that asks for an
input of a single character.
After pressing a single key on a keyboard, the character is
printed out and the program should stop.
If you want to test on Windows you can do thi
On Thursday, 18 November 2021 at 23:09:28 UTC, H. S. Teoh wrote:
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
On Friday, 19 November 2021 at 20:51:09 UTC, BoQsc wrote:
But the source file overwhelmed me by its size.
Yeah, the getch function in there builds on the rest of the
events the library offers, so it won't be that useful outside.
The OS functions for getch alone though are actually pretty
s
On 11/19/21 10:04 AM, frame wrote:
> On Friday, 19 November 2021 at 15:46:41 UTC, Adam D Ruppe wrote:
>
>> The `destroy` function (as well as other class destruction) will null
>> out the whole vtable to help make use-after-free an obvious error.
>> Possible that happened to you.
>
> So, a partial
On Friday, 19 November 2021 at 18:01:57 UTC, Adam D Ruppe wrote:
On Friday, 19 November 2021 at 17:36:55 UTC, BoQsc wrote:
Let's say I want to write a simple program that asks for an
input of a single character.
After pressing a single key on a keyboard, the character is
printed out and the pro
On Friday, 19 November 2021 at 18:14:03 UTC, Adam D Ruppe wrote:
I've gotten that before as a result of a compiler bug... I had
an abstract method that wasn't implemented but the compile time
error got swallowed by a bug and thus the null method made its
way to the binary.
You got it! It was
On Friday, 19 November 2021 at 18:04:17 UTC, frame wrote:
So, a partial nulled table shouldn't exist, right? like this:
Indeed.
I've gotten that before as a result of a compiler bug... I had an
abstract method that wasn't implemented but the compile time
error got swallowed by a bug and thus
On Friday, 19 November 2021 at 17:38:53 UTC, Merlin Diavova wrote:
I'm trying to figure out the most efficient way to create
modified instances of immutable structs.
This might not be the best way but it is a kinda cool trick
anyway: structs have a `tupleof` property you can slice. So you
can
On Friday, 19 November 2021 at 15:46:41 UTC, Adam D Ruppe wrote:
The `destroy` function (as well as other class destruction)
will null out the whole vtable to help make use-after-free an
obvious error. Possible that happened to you.
So, a partial nulled table shouldn't exist, right? like this
On Friday, 19 November 2021 at 17:36:55 UTC, BoQsc wrote:
Let's say I want to write a simple program that asks for an
input of a single character.
After pressing a single key on a keyboard, the character is
printed out and the program should stop.
This is platform specific. About 10 lines of
Hi all,
I'm trying to figure out the most efficient way to create
modified instances of immutable structs.
Currently, I'm doing the following:
```d
immutable struct Node {
string label;
Node parentNode;
NetworkPort port;
auto withLabel(string newLabel)
Let's say I want to write a simple program that asks for an input
of a single character.
After pressing a single key on a keyboard, the character is
printed out and the program should stop.
On Friday, 19 November 2021 at 15:37:59 UTC, frame wrote:
Is a null pointer entry in the __vptr[] valid or always a sign
for corruption/wrong cast somewhere? thx
The `destroy` function (as well as other class destruction) will
null out the whole vtable to help make use-after-free an obvious
e
Got a suspicious interface instance in the debugger and question
myself:
Is a null pointer entry in the __vptr[] valid or always a sign
for corruption/wrong cast somewhere? thx
On Friday, 19 November 2021 at 14:22:07 UTC, Paul Backus wrote:
When you pass a struct instance to a function by value, or
return a struct instance from a function by value, a copy is
made, and the copy constructor is called.
Your `opAssign` takes `rhs` by value, and returns a `str` by
[...
On Friday, 19 November 2021 at 14:05:40 UTC, rempas wrote:
So, when I assign the value of the variable "name" in the
"other_name", first it will call the copy constructor, then it
will call the assignment constructor and then it will call the
copy constructor again. Why is this happening? I was
Hi! I'm trying to make my own string type for my library. Anyway,
I'm not very experienced with structs/classes so I don't
understand what's going one here. I will not post the full code
because I don't think that anyone would like it so I will just
post the important parts that play a role (th
On Wednesday, 17 November 2021 at 17:02:45 UTC, H. S. Teoh wrote:
Regular (non-recursive) templates generally will not cause a
noticeable change in compilation times. The trouble usually
only starts when you start using recursive templates. Or when
your templates are nested unreasonably dee
I just want to share a view lines of code.
The availability of operator overloading can result in very short
and precise code for linear algebra.
To test/explore it a little I just modified the alias this
example:
```
#!/usr/bin/env rdmd
struct Point
{
double[2] p;
// Forward all undefi
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 infor
26 matches
Mail list logo