On Tuesday, 16 January 2024 at 19:05:43 UTC, Jonathan M Davis
wrote:
When local imports were introduced, they were pushed as best
practice (in part, because Andrei is a big fan of them), and I
think that for the most part, they still are, but there's
definitely going to be some disagreement o
On Tuesday, 16 January 2024 at 13:19:59 UTC, Orfeo wrote:
I found myself a bit perplexed when it comes to the usage of
"nested imports" and selective imports. It seems that prominent
D programmers have varied opinions on the matter. I would love
to hear your insights and experiences on this top
I found myself a bit perplexed when it comes to the usage of
"nested imports" and selective imports. It seems that prominent D
programmers have varied opinions on the matter. I would love to
hear your insights and experiences on this topic.
Here's a quick summary of what I've come across from
https://forum.dlang.org/post/gbpasireizpjfifmq...@forum.dlang.org
On Monday, 30 August 2021 at 12:51:38 UTC, someone wrote:
On Monday, 30 August 2021 at 10:37:38 UTC, Steven Schveighoffer
wrote:
It used to be moderated somewhat, but I think they gave up
(99% of the messages were porn or spam)
On Tuesday, 12 November 2019 at 21:05:35 UTC, Adam D. Ruppe wrote:
On Tuesday, 12 November 2019 at 20:45:11 UTC, Orfeo wrote:
In druntime (core/bitop.d line 302) I found this function
it is a magic function that the compiler recognizes and outputs
a cpu instruction instead of a regular call.
On Saturday, 2 November 2019 at 20:01:27 UTC, Vinod K Chandran
wrote:
Hi all,
I just found that DFL gui library very interesting. But after
some searching, i can see that DFL is inactive and there is few
other forks for it. So this is my question - Which fork is good
for a gui development in w
In druntime (core/bitop.d line 302) I found this function
```
/**
* Tests and resets (sets to 0) the bit.
*/
int btr(size_t* p, size_t bitnum) pure @system;
```
Honestly don't understand: where is the body of the function?
I thought I could find something like that:
```
int btr(size_t* p,
On Wednesday, 21 August 2019 at 13:56:51 UTC, Eugene Wissner
wrote:
On Wednesday, 21 August 2019 at 13:41:20 UTC, Orfeo wrote:
I've:
```
module anomalo.util;
// Foo doesn't exist anywhere!
Foo toJsJson(string type, Args...)(string id, Args args) {
static if (type == "int" || type == "o
I've:
```
module anomalo.util;
// Foo doesn't exist anywhere!
Foo toJsJson(string type, Args...)(string id, Args args) {
static if (type == "int" || type == "outcome") {
return Json(["id" : Json(id), "type" : Json(type), "value"
: Json(0),]);
} else {
static assert(0, "i
On Friday, 7 September 2018 at 14:36:18 UTC, rikki cattermole
wrote:
On 08/09/2018 2:29 AM, Orfeo wrote:
==> And why (maybe a silly question) `-dip1000` breaksĀ my
project so badly without warning..
DIP 1000 is an experimental addition to D, that is yet to be
complete.
It is a compiler switch
Sorry, I pressed send too quickly
On Friday, 7 September 2018 at 14:04:47 UTC, Orfeo wrote:
I've a project that link FuzzyCopy [1], that was compiled
without problems.
So I add FuzzyCopy library [1], I update dmd, then:
==> I've a project that was compiled without problems.
So I add FuzzyCopy
I wanted to highlight a problem that drove me crazy.
I've a project that link FuzzyCopy [1], that was compiled without
problems.
So I add FuzzyCopy library [1], I update dmd, then:
```
$ dmd --version
DMD64 D Compiler v2.082.0
Copyright (C) 1999-2018 by The D Language Foundation, All Rights
R
On Wednesday, 4 April 2018 at 10:09:41 UTC, sarn wrote:
On Wednesday, 4 April 2018 at 10:00:18 UTC, Orfeo wrote:
foreach (l; log) {
l.run;
}
Try making this "foreach (ref l; log) {".
Structs are value types in D, so by default they're copied when
you assign them to anoth
Hi all,
I have:
```
import std.stdio;
void main() {
Logger[] log;
Logger l0 = Logger(0,1);
Logger l1 = Logger(100,1);
Logger l2 = Logger(200,1);
log ~= l0;
log ~= l1;
foreach (i; 0 .. 3) {
writeln("it:", i);
foreach (l; log) {
l.run;
}
}
}
str
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote:
Hi, just a quick question:
If I write a program in D and I use Windows for development but
want it to run on Linux, do I have to copy the source code to
the target Linux machine and compile it there, to make an
executable for th
something like that can help?
```
run: all
$(OUT)
```
On Thursday, 23 April 2015 at 14:40:01 UTC, Frank Pagliughi wrote:
I got the OK to submit the D library to Eclipse Paho. So,
hopefully within the next few weeks there will be a Paho
incubator project for the D language client.
Hi Frank,
any news about your MQTT client project?
Thank you
You can refer to
http://forum.dlang.org/post/jhbgaacoguxaubxgp...@forum.dlang.org
Do you use dub?
I resolved my problems (on Win) abandoning dub
and using makefile.
On Friday, 20 March 2015 at 17:35:19 UTC, Koi wrote:
Hello,
after some coding i needed to update some external libraries
like
My preferred option is b. that is convert your MQTT broker to
MQTT client.
I'm not a MQTT expert, so, in your opinion what parts of your
code should I change?
(i.e. message module should be the same, peraphs module stream...)
Thanks for your support
(and also for your unit-threaded project!)
I wanted to create a simple application to display and edit data
from postgresql database using GtkD and ddb
(https://github.com/pszturmaj/ddb)
The application should run on WinXp or Win7. After a week of work
I throw in the towel ...
1. The first problem
$ dub build
Unexpected Terminat
If I compile with rdmd
```
$ dub build --rdmd
```
it works
My dub.json :
```
{
"name": "ddb_test",
"description": "A minimal D application.",
"dependencies": {
"gtk-d:gtkd": ">=2.3.3",
"ddb": ">=0.2.1"
}
}
```
My source (source/app.d):
```
import ddb.postgres;
import gtk.Window;
int main(string[] argv) {
return 0;
}
```
Well, after many attempts, I have found what is causing the
problem.
My dub.json :
```
{
"name": "ddb_test",
"description": "A minimal D application.",
"dependencies": {
"gtk-d:gtkd": ">=2.3.3",
"ddb": ">=0.2.1"
}
}
```
My source (source/app.d):
```
import ddb.postgre
The problem was on ddb 0.2.1 ... if I remove it I can compile
Thank you for your reply...
On Thursday, 19 June 2014 at 12:28:31 UTC, Mathias Lang wrote:
>8
AFAIK, D is not officially supported on Win XP.
>8
The strange thing is that it worked yesterday and not today. I
have also tried with Win7 64bit (on Vi
I've this dub.json
{
"name": "ega_editor",
"description": "Editor for ega database",
"targetType": "executable",
"targetPath": "bin",
"dependencies": {
"sdlang-d": ">=0.8.4",
"ddb": ">=0.2.1",
"dejector": "~master",
26 matches
Mail list logo