On Wednesday, 9 April 2025 at 01:23:01 UTC, Salih Dincer wrote:
On Tuesday, 8 April 2025 at 20:14:56 UTC, Andy Valencia wrote:
p.s. Ironically, I could probably have coded a getopt in less
time than I've spent on std.getopt...
:)
Please try the following example with the parameters -h, -e,
On Friday, 12 August 2011 at 22:51:34 UTC, Andrej Mitrovic wrote:
That's pretty stupid, of course you want to modify the
arguments.
Classic example:
void main(string[] args)
{
args.popFront; // get rid of name
foreach (arg; args)
{
}
}
Shouldn’t do this
I don’t like [$-1], I want to define a token L to be $-1 and use
o[L]
On Saturday, 10 May 2025 at 04:52:15 UTC, Python wrote:
getchar();
I don’t like this
On Monday, 12 May 2025 at 08:35:02 UTC, Justin Allen Parrott
wrote:
On Saturday, 10 May 2025 at 04:52:15 UTC, Python wrote:
getchar();
I don’t like this
Poor man's tool to keep my threads running.
On Monday, 12 May 2025 at 14:10:41 UTC, Python wrote:
On Monday, 12 May 2025 at 08:35:02 UTC, Justin Allen Parrott
wrote:
On Saturday, 10 May 2025 at 04:52:15 UTC, Python wrote:
getchar();
I don’t like this
Poor man's tool to keep my threads running.
Thread-wait or join
Hi,
With
```
$ dub --version
DUB version 1.39.0, built on Mar 20 2025
$ ldc2 --version
LDC - the LLVM D compiler (1.40.1):
```
dub.json:
```
"lflags": [
...
"-L/usr/local/cuda/lib64",
"-lcudart_static",
...
],
```
I got a link error: `undefined reference to
'cudaGetDeviceProp
On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:
Any tips?
Debuggers phased out in the nineties
On Monday, May 12, 2025 1:01:49 AM Mountain Daylight Time Justin Allen Parrott
via Digitalmars-d-learn wrote:
> On Friday, 12 August 2011 at 22:51:34 UTC, Andrej Mitrovic wrote:
> > That's pretty stupid, of course you want to modify the
> > arguments.
> >
> > Classic example:
> >
> > void main(str
I saw a post
(https://forum.dlang.org/post/aklmfkzqpsraprjfx...@forum.dlang.org) by Dennis where he gives an example:
Finally, mechanical scope checking has false positives:
```D
void f(ref scope S ctx)
{
const old = ctx;
g(ctx);
ctx = old; // Error: scope variable `old` assigned to `r
On Monday, 12 May 2025 at 21:46:04 UTC, matheus wrote:
I saw a post
(https://forum.dlang.org/post/aklmfkzqpsraprjfx...@forum.dlang.org) by Dennis where he gives an example:
So I'd like to try it out, so I wrote the snippet below:
@safe
import std;
struct S{}
Make sure S contains at least o
On Monday, 5 May 2025 at 17:15:57 UTC, kdevel wrote:
```
auto foo (ubyte [4] s)
{
auto u = s;
ubyte [4] tmp = u;
```
When I put `shared` in front of that definition the unittest
passes.
```
u[0] = tmp [3];
u[1] = tmp [2];
u[2] = tmp [1];
u[3] = tmp [0];
return u;
}
```
On 5/12/25 12:10 AM, Justin Allen Parrott wrote:
I don’t like [$-1], I want to define a token L to be $-1 and use o[L]
I like o.back:
import std.range;
void main() {
int[] o = [ 1, 2, 3 ];
assert(o[$-1] == o.back);
assert(&(o[$-1]) == &(o.back));
}
Ali
13 matches
Mail list logo