On Wednesday, 4 October 2023 at 07:43:29 UTC, Tuna Celik wrote:
On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:
[...]
I'm also suffering from the same problem.
It seems to be an Xcode 15 issues, everything works fine with 14
Hello everybody,
If a compilation error is thrown with CTFE involved, the 'called
from here' is like:
```
src/api3.d(2010): Error: uncaught CTFE exception
`object.Exception("42703: column \"system_timestamp_ms\" does not
exist. SQL: select coalesce(count(system_timestamp_ms),0) from
On Monday, 1 May 2023 at 16:57:39 UTC, Dadoum wrote:
On Sunday, 30 April 2023 at 17:51:15 UTC, Eric P626 wrote:
But how is this possible in a cross-compiling context. I am
not sure if I can do that with the D language either as pure D
or better C. DMD does not seem to offer cross compiling.
On Wednesday, 15 February 2023 at 12:15:18 UTC, Bastiaan Veelo
wrote:
On Thursday, 9 February 2023 at 17:49:58 UTC, Paolo Invernizzi
wrote:
```
import std.format, std.range.primitives;
struct Point(T)
{
T x, y;
void toString(W)(ref W writer, scope const ref
FormatSpec!char f) const
Hello everybody,
Let's assume there's an implementation of a templated struct like
this:
```
import std.format, std.range.primitives;
struct Point(T)
{
T x, y;
void toString(W)(ref W writer, scope const ref
FormatSpec!char f) const
if (isOutputRange!(W, char))
{
On Sunday, 24 April 2022 at 12:21:29 UTC, elfstone wrote:
On Sunday, 24 April 2022 at 11:36:29 UTC, Paolo Invernizzi
wrote:
On Sunday, 24 April 2022 at 09:31:40 UTC, elfstone wrote:
[...]
You need to use the flag `-preview=dip1021`
test.d(8,30): Error: variable `test.test.p` assigning
On Sunday, 24 April 2022 at 09:31:40 UTC, elfstone wrote:
Dub(DMD 2.099.1) builds and runs the following code without a
warning.
import std.stdio;
import core.stdc.stdlib;
@live
void test()
{
int* p = cast(int*) malloc(32);
p = cast(int*) malloc(32);
On Tuesday, 28 July 2020 at 11:04:00 UTC, Cecil Ward wrote:
Of course, in C I used to do something like strong typing with
an opaque type achieved by using something like typedef struct
_something {} * type1; and then I had to do casting to get back
the real type, which was unchecked but it
On Monday, 11 May 2020 at 15:02:59 UTC, bauss wrote:
On Monday, 11 May 2020 at 14:02:54 UTC, Russel Winder wrote:
OK, so I need to create an asynchronous TCP server (not HTTP
or HTTPS, this is
a real server ;-) ).
I think the normal response is "Use Vibe.d". However, recently
I see Hunt is
On Sunday, 15 March 2020 at 18:52:01 UTC, Steven Schveighoffer
wrote:
D doesn't support this natively. The closest you can get is
something akin to what aliak wrote (you would need to write
something, not sure if Phobos or some package has implemented
the feature), or use cascaded if
On Saturday, 7 March 2020 at 09:31:27 UTC, JN wrote:
Do we have any cool name for Dub packages?
Rust has 'crates'
Crystal has 'shards'
Python has 'wheels'
Ruby has 'gems'
Frankly, I simply hate all that shuffle around names ... it's so
difficult to understand people when it's referring to
On Friday, 18 October 2019 at 11:45:33 UTC, Seb wrote:
On Friday, 18 October 2019 at 10:55:59 UTC, Martin Tschierschke
wrote:
[...]
In the state of the D survey, there were more people in favor
of StackOverflow than D.learn, but to be fair the majority
voted for "I don't care"
On Friday, 18 October 2019 at 08:06:30 UTC, Vino wrote:
On Thursday, 17 October 2019 at 19:02:14 UTC, Vino wrote:
[...]
Hi Andre,
I tried install vibe.d in SUSE linux 12 SP2 and facing the
below error, tried the options as per the link
https://github.com/vibe-d/vibe.d/issues/1748, still
On Monday, 14 October 2019 at 05:36:44 UTC, Joel wrote:
On Friday, 11 October 2019 at 11:38:27 UTC, Jacob Carlborg
wrote:
[...]
I get this since Catalina:
Joel-Computer:VacSpace joelchristensen$ dub
Failed to invoke the compiler dmd to determine the build
platform: dyld: lazy symbol binding
On Wednesday, 9 October 2019 at 16:08:41 UTC, rikki cattermole
wrote:
On 09/10/2019 11:33 PM, David Briant wrote:
[...]
D as a native language links against libc, so using the system
c compiler as the linker is a viable method to prevent having
to look things up.
Perhaps try ldc? That
On Thursday, 4 July 2019 at 01:01:03 UTC, Nicholas Wilson wrote:
On Wednesday, 3 July 2019 at 20:49:20 UTC, JN wrote:
Does anyone know if and how well D works on ARM laptops (such
as Chromebooks and similar)?
For example this one https://www.pine64.org/pinebook/ . Can it
compile D? Obviously
On Sunday, 14 April 2019 at 20:51:10 UTC, Andre Pany wrote:
On Sunday, 14 April 2019 at 19:46:41 UTC, Ron Tarrant wrote:
[...]
You are totally right, it should be more intuitive how to use
dub.
As far as I know if you do not specify in dub.json/dub.sdl what
type of package you have
There's a rational behind the fact that there's not a 'shared'
version of notify/wait method in Condition?
Thanks,
Paolo
On Saturday, 17 March 2018 at 17:51:50 UTC, John Chapman wrote:
I'm trying to replace the old std.streams in my app with
ranges. I'm interfacing with a networking library to which I
supply a callback that when invoked provides the requested
data. I write that data to an output range, but
On Wednesday, 10 January 2018 at 19:21:21 UTC, Adam D. Ruppe
wrote:
On Wednesday, 10 January 2018 at 19:15:00 UTC, Anonymouse wrote:
I don't see a 64 bit release though... might have to try to
build it yourself from source using visual studio.
It's a long time I don't understand why there's
On Friday, 3 November 2017 at 23:32:52 UTC, H. S. Teoh wrote:
[...]
What's wrong with the introduction of another visibility
attribute that behave like the C++ private?
Just curious...
---
Paolo
On Friday, 29 September 2017 at 22:15:44 UTC, Mengu wrote:
On Friday, 29 September 2017 at 02:34:08 UTC, DreadKyller wrote:
[...]
+1 for forum issue.
+1 please...
On Monday, 3 July 2017 at 17:30:51 UTC, Ali Çehreli wrote:
hOn 07/03/2017 10:13 AM, Paolo Invernizzi wrote:
> [...]
struct with
> [...]
I had difficulty understanding the requirements. For example,
it's not clear whether you want the literal "first" and
"second" names.
[...]
Thanks Ali,
On Monday, 3 July 2017 at 16:41:51 UTC, vit wrote:
On Monday, 3 July 2017 at 13:53:45 UTC, Paolo Invernizzi wrote:
[...]
//https://dpaste.dzfl.pl/d59469c264b2
import std.algorithm : map, copy, equal;
import std.range : iota;
struct Foo {
int[3] a;
string[2] b;
}
ref T first(R :
I've struct like that:
struct Foo {
int a_1; float a_2; string a_3;
string b_1; double b_2;
}
I would like to transparently access that like:
foo.a.first
foo.b.second = "baz";
with an helper like:
auto a(...) { ... }
auto b(...) { ... }
that can be used also in functions that are
On Wednesday, 7 June 2017 at 16:50:26 UTC, Russel Winder wrote:
In the constructor of an object to abstract the result of a
call to the C library code, the parameter is:
check_frontend_t* cf
You should remove the pointer here...
/Paolo
On Sunday, 4 June 2017 at 19:24:17 UTC, Basile B. wrote:
On Sunday, 4 June 2017 at 18:13:41 UTC, Russel Winder wrote:
[...]
you have to pipe the output to ddemangle. Personally i don't
know how to do this by hand since my IDE does the task
automatically
On Wednesday, 15 March 2017 at 09:18:16 UTC, Suliman wrote:
On Tuesday, 14 March 2017 at 13:36:04 UTC, Daniel Kozak wrote:
Dne 14.3.2017 v 14:21 Daniel Kozak napsal(a):
Dne 14.3.2017 v 14:13 Suliman via Digitalmars-d-learn
napsal(a):
I need to develop App that should work on Linux and
On Wednesday, 15 March 2017 at 08:50:11 UTC, Dsby wrote:
On Tuesday, 14 March 2017 at 16:24:31 UTC, Paolo Invernizzi
wrote:
On Tuesday, 14 March 2017 at 13:32:31 UTC, Suliman wrote:
On Tuesday, 14 March 2017 at 13:21:39 UTC, Paolo Invernizzi
wrote:
On Tuesday, 14 March 2017 at 13:13:31 UTC,
On Tuesday, 14 March 2017 at 13:32:31 UTC, Suliman wrote:
On Tuesday, 14 March 2017 at 13:21:39 UTC, Paolo Invernizzi
wrote:
On Tuesday, 14 March 2017 at 13:13:31 UTC, Suliman wrote:
[...]
I'm using ddb [1], a full-D implementation of the PostgreSQL
protocol. Not everything it's in place,
On Tuesday, 14 March 2017 at 13:13:31 UTC, Suliman wrote:
I need to develop App that should work on Linux and Windows. It
need PostgreSQL driver. I tried Vadim's ddbc for PostgreSQL but
it's fail on x64 version of PostgreSQL and possible will not on
x64 PG on Linux (I can't test it now).
On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote:
On 02/06/2017 08:43 AM, Dmitry wrote:
Found this https://rosettacode.org/wiki/Natural_sorting#D
but there is error on ".groupBy!isDigit" (Error: no property
'groupBy'
for type 'string').
I think it's now std.algorithm.chunkBy.
On Thursday, 8 December 2016 at 11:09:12 UTC, ketmar wrote:
what can be done, tho, is article (or series of articles)
describing what exactly druntime is, how it is compared to libc
and libc++, why it doesn't hurt at all, how to do "bare metal"
with custom runtime, why GC is handy (and how to
On Sunday, 27 November 2016 at 22:25:51 UTC, John Colvin wrote:
On Saturday, 26 November 2016 at 17:37:57 UTC, Paolo Invernizzi
wrote:
This is stated in documentation [1]:
immutable long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
unittest
{
assert(aa["foo"] == 5);
On Saturday, 26 November 2016 at 19:57:21 UTC, Adam D. Ruppe
wrote:
On Saturday, 26 November 2016 at 17:37:57 UTC, Paolo Invernizzi
wrote:
This is stated in documentation [1]:
What's the link?
This is a known limitation, it has never worked. The docs
should reflect that, though some day, it
This is stated in documentation [1]:
immutable long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
unittest
{
assert(aa["foo"] == 5);
assert(aa["bar"] == 10);
assert(aa["baz"] == 2000);
}
But results to:
Error: non-constant expression ["foo":5L, "bar":10L,
I'm not sure if it's the same as #15064 bug:
import std.array, std.range, std.algorithm;
immutable static foo = ["a", "b", "c"];
auto bar(R)(R r)
{
string s = r[1];
return s;
}
immutable static res = foo.enumerate.map!bar().array;
std/typecons.d(526): Error:
On Wednesday, 26 October 2016 at 19:03:45 UTC, Ali Çehreli wrote:
On 10/26/2016 08:03 AM, Paolo Invernizzi wrote:
[...]
If you mean D's AAs, then that is already implemented:
void main() {
auto a = [ "hello" : 1, "world" : 2 ];
auto b = [ "world" : 2, "hello" : 1 ];
assert(a ==
As the subject states, what is the best idiomatic way for doing
that?
Thanks in advance
/Paolo
On Wednesday, 26 October 2016 at 08:42:02 UTC, dm wrote:
Hi. I tried code below:
import std.concurrency;
import std.stdio;
void func()
{
throw new Exception("I'm an exception");
}
void main()
{
auto tID = spawn();
foreach(line; stdin.byLine)
send(tID, "");
}
I expect my
On Thursday, 29 September 2016 at 11:43:32 UTC, Jacob Carlborg
wrote:
Cool, what if I want to use different versions in different
sessions, i.e. I have two tabs open in my terminal?
Ummm...
All the installed stuff is pretty well organised inside
`/usr/local`, so this works...
---
hw0062:~
On Thursday, 29 September 2016 at 06:24:08 UTC, Jacob Carlborg
wrote:
On 2016-09-29 03:43, David Nadlinger wrote:
I've had good experiences using Homebrew, although you
sometimes have to wait
a day or three for a new release to appear. — David
DVM doesn't have that problem :). How easy is it
On Thursday, 13 November 2014 at 05:57:49 UTC, Joakim wrote:
On Wednesday, 12 November 2014 at 22:38:56 UTC, Ali Çehreli
wrote:
A friend of mine installed dmd on OSX and recorded his
experiences:
http://cap-lore.com/Languages/D/Install.html
I wonder why he had to do manual work like running
On Thursday, 30 October 2014 at 06:57:23 UTC, Ola Fosheim Grøstad
wrote:
There are also scripting frameworks that let you write portable
code for web and mobile platforms, but they tend to be geared
towards a special type of application.
E.g.
http://www.tidesdk.org/
http://cordova.apache.org/
On Friday, 24 October 2014 at 00:37:26 UTC, Mike Parker wrote:
There are people out there using D who do not participate in
the newsgroups. Walter has told us before that he gets emails
from companies using D in production. He has to deal with
complaints about code breakage that we aren't
On Thursday, 23 October 2014 at 02:22:41 UTC, Jonathan M Davis
wrote:
On Thursday, 23 October 2014 at 00:59:26 UTC, Shriramana Sharma
via Digitalmars-d-learn wrote:
LOL. I understand the sentiment, but it's a waste of time.
Jonathan,
I agree It's impossible to debate such thing with Walter
46 matches
Mail list logo