On Thursday, 19 July 2018 at 22:16:22 UTC, Ali Çehreli wrote:
On 07/19/2018 08:12 AM, Emma wrote:
> [...]
> If I try to compile it, dmd complains, which I guess makes
sense:
>
> ---
> Error: need this for bar of type void()
> Error: need this for baz of type void()
> ---
>
> [...]
I think it's
The first round of Community Review for DIP 1016, "ref T accepts
r-values", has begun. To participate, please visit the review
thread for the details:
https://forum.dlang.org/post/xoiyfeudgibxtbywx...@forum.dlang.org
*Please leave all feedback in the review thread rather than here!*
Thanks!
This is the feedback thread for the first round of Community
Review for DIP 1016, "ref T accepts r-values":
https://github.com/dlang/DIPs/blob/725541d69149bc85a9492f7df07360f8e2948bd7/DIPs/DIP1016.md
All review-related feedback on and discussion of the DIP should
occur in this thread. The
On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote:
I don't have MSVC, so I built it using mingw, which generated a
.a lib.
I shall google some more, as I understand it DMD -m64 uses
Mingw libs as a fall back when MSVC not found, I compiled Lua
using mingw, I can't be too much
On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote:
On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote:
Is there any way I can generate the appropriate lib?
Else I think I'll need to get hold of the proper import libs
that come with the Lua distribution.
Lua is
On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote:
Is there any way I can generate the appropriate lib?
Else I think I'll need to get hold of the proper import libs
that come with the Lua distribution.
Lua is extremely easy to build. That will generate the import lib
for
https://issues.dlang.org/show_bug.cgi?id=19103
Seb changed:
What|Removed |Added
CC||greeen...@gmail.com
--- Comment #1 from Seb ---
>
Interesting (and way too detailed for me) tale of GC adventures
in golang:
https://blog.golang.org/ismmkeynote
An implementation method:
Single `alias this` already works, this method leverages it to
create a multiple `alias this`. This method is presented for a
basic review
1.
alias a,b,... this;
Is this proposed syntax used for assigning multiple sinks for the
dispatching of access '.'
https://issues.dlang.org/show_bug.cgi?id=19103
Issue ID: 19103
Summary: Can imports symbols in module to a struct with mixin.
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity:
On 07/19/2018 08:12 AM, Emma wrote:
> void test(alias fn1, alias fn2)()
> {
> fn1();
> fn2();
> }
>
> struct Foo
> {
> void foo()
> {
> test!(bar, baz);
> }
>
> void bar()
> {}
>
> void baz()
> {}
> }
> ---
>
> If I try to compile it, dmd
On Thursday, July 19, 2018 13:51:25 Seb via Digitalmars-d-announce wrote:
> As you mentioned SDL already supports comments. JSON support was
> actually only added because too many people complained about SDL
> not being properly supported.
Actually, originally, dub only supported json. sdl came
I'm trying to create an import library from a dll (in this case,
a Lua dll).
Using dumpbin, I end up with a .def file:
EXPORTS
luaL_addlstring
luaL_addstring
luaL_addvalue
luaL_argerror
luaL_buffinit
...
I then use MS lib tool to generate a lib file:
lib /def:lua53.def /out:lua53.lib
https://issues.dlang.org/show_bug.cgi?id=19100
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
--- Comment #1 from Seb ---
On Friday, 13 July 2018 at 19:02:56 UTC, Laeeth Isharc wrote:
Atila Neves' d++ now compiles julia.h. Modulo bugs this makes
it possible to embed Julia in D (and probably the other way
around, but I have not tried).
https://github.com/kaleidicassociates/juliad
Related: Everything worked out
https://issues.dlang.org/show_bug.cgi?id=19075
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=19075
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/449ef5265e46d57000bfb5a745b2be5856325e1e
Fix Issue 19075 - rt.util.random.Rand48.defaultSeed
https://issues.dlang.org/show_bug.cgi?id=19102
Issue ID: 19102
Summary: [Functions] pure functions repetition
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
I wanted to create a struct with a member function whose behavior
was different depending on whether the struct instance had a
particular UDA.
However, it seems like hasUDA doesn't seem to produce the result
I would have expected here. I tried using getAttributes, but that
didn't work
https://issues.dlang.org/show_bug.cgi?id=19101
Issue ID: 19101
Summary: Miscompilation on extern(C++) overloads with D types
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
https://issues.dlang.org/show_bug.cgi?id=19100
Issue ID: 19100
Summary: install.sh signature verification fails, no public key
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity:
On Thursday, 19 July 2018 at 12:44:30 UTC, Radu wrote:
---
int foo()
{
import std.algorithm, std.range;
auto r = 100.iota.stride(2).take(5);
return r.sum();
}
---
ldc2 -mtriple=wasm32-unknown-unknown-wasm -betterC
-link-internally -L-allow-undefined -release -Os wasm.d
On Friday, 13 February 2015 at 19:03:10 UTC, Jonathan Marler
wrote:
This question comes from wanting to be able to throw an
exception in code that is @nogc.
https://dlang.org/changelog/2.079.0.html#dip1008
```d
void main() @nogc
{
throw new Exception("I'm @nogc now");
}
```
https://issues.dlang.org/show_bug.cgi?id=19003
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/65ca2aef50e588a7c09ef4e88d0bbc4391d80293
Add unittest for issue #19003
https://issues.dlang.org/show_bug.cgi?id=19075
Nathan S. changed:
What|Removed |Added
Summary|rt.util.random.Rand48.defau |rt.util.random.Rand48.defau
On Thursday, 19 July 2018 at 14:21:51 UTC, bachmeier wrote:
[...]
.dub/build/unittest-unittest-linux.posix-x86_64-dmd_2081-A8A607969A46E4CDF45479E7A30874E9/ut.o:
In function `_D5parse3raw17__unittest_L64_C9FZ12__dgliteral1MFNaNbNiNfZk':
Hello,
I’ve got this piece of code:
---
import std.stdio;
void test(alias fn1, alias fn2)()
{
fn1();
fn2();
}
struct Foo
{
void foo()
{
test!(bar, baz);
}
void bar()
{}
void baz()
{}
}
---
If I try to compile it, dmd complains, which I guess
On Thursday, 19 July 2018 at 12:44:30 UTC, Radu wrote:
Just tried something similar with new LDC Webassembly support
[1] and it fails to compile
...
This is a prime example of stuff that should just workTM on
targets like that. I would like to submit some fixes but I
think there needs to be
https://issues.dlang.org/show_bug.cgi?id=19095
Basile B. changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
I haven't been able to get dpp to build. I've discovered that the
problem is with libclang. It installs, but when running the
tests, I get the lengthy message below. Obviously I need to
install something (running Ubuntu 16.04) but I've got numerous
libclang related packages installed already
On Thursday, 19 July 2018 at 12:40:09 UTC, Zheng (Vic) Luo wrote:
On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote:
Well, since 2.079 it's actually possible to use D without a
dependency any runtime (even libc):
https://dlang.org/changelog/2.079.0.html#minimal_runtime
Also with
On Thursday, 19 July 2018 at 13:10:01 UTC, Martin Tschierschke
wrote:
There should be a big section for well done dub.sdl / dub.json
examples.
Yes, there should be!
As always it just requires someone to step up, collect and add
these examples.
FWIW the dub and vibe.d repositories both contain
On Thursday, 19 July 2018 at 13:10:01 UTC, Martin Tschierschke
wrote:
On Thursday, 19 July 2018 at 09:39:04 UTC, Seb wrote:
[...]
Very ++ :-)
There should be a big section for well done dub.sdl / dub.json
examples.
What about defining "comment" as an special keyword for the
.json parser
On Thursday, 19 July 2018 at 09:41:34 UTC, Mike Parker wrote:
Are you doing all of that in the main thread, or a separate one?
It's all on a separate thread, but I checked every single
reference I could find after posting yesterday, and the OGL
context is never referenced outside of the
On Thursday, 19 July 2018 at 09:39:04 UTC, Seb wrote:
tl;dr: The dub documentation got split from the dub-registry
repository and now lives on https://dub.pm
(https://github.com/dlang/dub-docs).
Motivation:
---
- makes building the dub-registry faster
- people hosting a mirror or a
https://issues.dlang.org/show_bug.cgi?id=19089
uplink.co...@googlemail.com changed:
What|Removed |Added
Assignee|nob...@puremagic.com|uplink.co...@googlemail.com
https://issues.dlang.org/show_bug.cgi?id=19089
uplink.co...@googlemail.com changed:
What|Removed |Added
CC||uplink.co...@googlemail.com
On Thursday, 19 July 2018 at 09:44:16 UTC, Steven Schveighoffer
wrote:
On 7/18/18 1:58 AM, John Carter wrote:
With web services, most of the time the shared state you want
elsewhere anyway (to make it persistent), so it's a better fit
for processes than most program domains.
Sharing a
https://issues.dlang.org/show_bug.cgi?id=19094
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=19094
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/91659e60fe4befe69d7cb3a6bdbfd5c839adbac4
fix issue 19094 - Anchored section does not exist in
On Thursday, July 19, 2018 10:04:34 RazvanN via Digitalmars-d-learn wrote:
> I just don't understand why you would ever mark the destructor of
> a struct with @disable. When is that useful? If it's not, why not
> just forbit it?
There's nothing special about destructors here. You can @disable any
On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote:
Well, since 2.079 it's actually possible to use D without a
dependency any runtime (even libc):
https://dlang.org/changelog/2.079.0.html#minimal_runtime
Also with -betterC you can actually use lots of things from
core that don't depend
On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote:
On Thursday, 19 July 2018 at 10:27:36 UTC, Zheng (Vic) Luo
wrote:
Current implementation of d-runtime relies on a lot of symbols
from libc, librt, libpthread, which makes it hard to create a
minimal runtime used for embedded devices.
https://issues.dlang.org/show_bug.cgi?id=19099
Issue ID: 19099
Summary: Struct with field that has postblit or destructor
makes struct assignable
Product: D
Version: D2
Hardware: x86_64
OS: Linux
https://issues.dlang.org/show_bug.cgi?id=19095
--- Comment #4 from Hiroki Noda ---
Thank you for the explanations, yes, the title of the report is not correct.
I am still not convinced that the global array initialization has been
successful in this case.
(Attemptive PR :
On Wednesday, 11 July 2018 at 10:07:33 UTC, Timoses wrote:
On Wednesday, 11 July 2018 at 08:31:30 UTC, Dorian Haglund
wrote:
[...]
As the error message says taskPool.reduce is a non-global
template. It's embedded in a taskPool struct. I can't say what
the reason is that a delegate cannot be
On Thursday, 19 July 2018 at 10:04:34 UTC, RazvanN wrote:
I just don't understand why you would ever mark the destructor
of a struct with @disable. When is that useful? If it's not,
why not just forbit it?
struct S1 {
~this() { /* stuff */ }
}
struct S2 {
S1 s;
@disable ~this();
On Thursday, 19 July 2018 at 10:27:36 UTC, Zheng (Vic) Luo wrote:
Current implementation of d-runtime relies on a lot of symbols
from libc, librt, libpthread, which makes it hard to create a
minimal runtime used for embedded devices. Although there are
some unofficial minimal versions of
On Thursday, 19 July 2018 at 10:14:34 UTC, Dominikus Dittes
Scherkl wrote:
On Wednesday, 18 July 2018 at 17:30:21 UTC, Jonathan M Davis
wrote:
On Tuesday, July 17, 2018 21:18:12 John Colvin via
Digitalmars-d wrote:
Just do what std.typecons.Proxy does and return float.nan for
the incomparable
https://issues.dlang.org/show_bug.cgi?id=19098
--- Comment #1 from RazvanN ---
PR: https://github.com/dlang/dmd/pull/8506
--
https://issues.dlang.org/show_bug.cgi?id=19098
Issue ID: 19098
Summary: Improve error for non-assignable struct
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: trivial
Current implementation of d-runtime relies on a lot of symbols
from libc, librt, libpthread, which makes it hard to create a
minimal runtime used for embedded devices. Although there are
some unofficial minimal versions of d-runtime, many of them lack
maintenance and outdates rapidly. I was
On Wednesday, 18 July 2018 at 17:49:19 UTC, H. S. Teoh wrote:
On Wed, Jul 18, 2018 at 11:30:21AM -0600, Jonathan M Davis via
On the other hand, if opCmp is allowed to return a user-defined
type, it would solve the problem in a neat way: just define a
quaternary type that encapsulates the
On Wednesday, 18 July 2018 at 17:30:21 UTC, Jonathan M Davis
wrote:
On Tuesday, July 17, 2018 21:18:12 John Colvin via
Digitalmars-d wrote:
Just do what std.typecons.Proxy does and return float.nan for
the incomparable case.
Since when is that legal? I thought that it was required for
opCmp
On Thursday, 19 July 2018 at 09:50:32 UTC, Jim Balter wrote:
On Thursday, 19 July 2018 at 08:50:15 UTC, RazvanN wrote:
struct A
{
int a;
@disable ~this() {}
}
void main()
{
A a = A(2);
}
Currently, this code yields:
Error: destructor `A.~this` cannot be used because it is
On Thursday, 19 July 2018 at 08:50:15 UTC, RazvanN wrote:
struct A
{
int a;
@disable ~this() {}
}
void main()
{
A a = A(2);
}
Currently, this code yields:
Error: destructor `A.~this` cannot be used because it is
annotated with @disable
I was expecting that disabling the
On 7/18/18 1:58 AM, John Carter wrote:
On Friday, 13 July 2018 at 13:15:39 UTC, Steven Schveighoffer wrote:
But it doesn't scale if you use OS processes, it's too heavyweight. Of
course, it depends on the application. If you only need 100 concurrent
connections, processes might be OK.
I
On Thursday, 19 July 2018 at 00:27:58 UTC, Entity325 wrote:
So I'm using the standard process:
DerelictGL3.load();
glContext = SDL_GL_CreateContext(sdlWindow);
GLVersion glVersion = DerelictGL3.reload();
About 1/3 of the time, the program hangs on the 3rd line and
never gets past it.
tl;dr: The dub documentation got split from the dub-registry
repository and now lives on https://dub.pm
(https://github.com/dlang/dub-docs).
Motivation:
---
- makes building the dub-registry faster
- people hosting a mirror or a private instance don't need to
host the documentation
struct A
{
int a;
@disable ~this() {}
}
void main()
{
A a = A(2);
}
Currently, this code yields:
Error: destructor `A.~this` cannot be used because it is
annotated with @disable
I was expecting that disabling the destructor would make it as if
the struct does not have a
On Thursday, 19 July 2018 at 06:35:36 UTC, Simen Kjærås wrote:
On Wednesday, 18 July 2018 at 11:28:54 UTC, Timoses wrote:
But why is a context pointer a problem? Is it problematic
because the context pointer to the main scope can not
guarantee `immutable`? E.g. if I happened to use data from
https://issues.dlang.org/show_bug.cgi?id=18563
Timoses changed:
What|Removed |Added
CC||timos...@gmail.com
--- Comment #1 from Timoses
https://issues.dlang.org/show_bug.cgi?id=19097
--- Comment #1 from Walter Bright ---
https://github.com/dlang/dmd/pull/8504
--
On Wednesday, 18 July 2018 at 22:44:33 UTC, aliak wrote:
On Wednesday, 18 July 2018 at 12:10:04 UTC, Seb wrote:
On Wednesday, 18 July 2018 at 03:40:08 UTC, Jon Degenhardt
[...]
[...]
That point is still open for discussion, but at the moment
rcstring isn't a range and the user has to
https://issues.dlang.org/show_bug.cgi?id=19097
Issue ID: 19097
Summary: Extend Return Scope Semantics
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
On Wednesday, 18 July 2018 at 11:28:54 UTC, Timoses wrote:
But why is a context pointer a problem? Is it problematic
because the context pointer to the main scope can not guarantee
`immutable`? E.g. if I happened to use data from main in a
function of the immutable struct then... well then
Am Tue, 17 Jul 2018 04:51:04 + schrieb Cecil Ward:
> I am getting an error when I try and compile anything with the GDC
> compiler which is coming up associated with source code within a D
> include file which is not one of mine
>
> I am using a Raspberry Pi with Ubuntu 16.04 and have just
67 matches
Mail list logo