On Thursday, 18 October 2018 at 05:59:36 UTC, rikki cattermole
wrote:
On 18/10/2018 6:38 PM, dangbinghoo wrote:
hi,
Is there any other documents related about ddoc usage? the
only thing I can find is:
https://dlang.org/spec/ddoc.html#using_ddoc_to_generate_examples
But I found it never
On 18/10/2018 6:38 PM, dangbinghoo wrote:
hi,
Is there any other documents related about ddoc usage? the only thing I
can find is:
https://dlang.org/spec/ddoc.html#using_ddoc_to_generate_examples
But I found it never mentioned something like $(LI a list item), is
there a full ddoc docume
hi,
Is there any other documents related about ddoc usage? the only
thing I can find is:
https://dlang.org/spec/ddoc.html#using_ddoc_to_generate_examples
But I found it never mentioned something like $(LI a list item),
is there a full ddoc document available?
And, is there any info about
On Wednesday, 17 October 2018 at 16:50:36 UTC, Paul Backus wrote:
On Wednesday, 17 October 2018 at 07:01:21 UTC, test wrote:
simple example: you can not use functionAttributes from betterC
On Wednesday, 17 October 2018 at 22:37:53 UTC, Stanislav Blinov
wrote:
On Wednesday, 17 October 2018 at 22:30:31 UTC, Jordan Wilson
wrote:
Ideally, I'd check args before I take the time to load up data.
https://dlang.org/phobos/core_runtime.html#.Runtime
Here I was looking through std...t
On Wednesday, 17 October 2018 at 16:50:36 UTC, Paul Backus wrote:
You can't append to an array in betterC code, because making
space for the new elements requires allocating memory, and that
uses the GC.
In theory, since you're only using the GC during CTFE, it
shouldn't be a problem, but the
On Wednesday, 17 October 2018 at 07:32:37 UTC, aliak wrote:
lazy S x = () {
// do some heavy stuff
}();
if (condition) {
func(x.y); // heavy stuff evaluated here
}
auto x = () {
// do some heavy stuff
};
if (condition) {
func(x().y); // heavy stuff evaluated here
}
If you want
I'm referring mainly to the `dagon` game engine.
Doing:
dub build :tutorial1
dub run :tutorial1
works on windows 10.
I'm not sure how to replicate this build process with Visual
Studio 2017 project settings.
Dagon is building, but I'm getting errors with a basic Hellow
World app in Dagon.
On Wednesday, 17 October 2018 at 08:08:44 UTC, Gary Willoughby
wrote:
On Wednesday, 17 October 2018 at 03:37:21 UTC, Ky-Anh Huynh
wrote:
Hi,
I need to build some static binaries with LDC. I also need to
execute builds on both platform 32-bit and 64-bit.
From Docker Hub there are two image g
Answer: they don't connect uniquely, you have to manage that
yourself.
On Wednesday, 17 October 2018 at 22:30:31 UTC, Jordan Wilson
wrote:
Ideally, I'd check args before I take the time to load up data.
https://dlang.org/phobos/core_runtime.html#.Runtime
Hello,
Is there a way to access command line arguments outside of main?
// main.d
module main;
import data;
void main(string args[]) {
}
// data.d
module data
immutable programData;
static this() {
// read in data
}
Ideally, I'd check args before I take the time to load up data.
Thanks
On Wednesday, 17 October 2018 at 20:53:02 UTC, Vijay Nayar wrote:
This particular use of "scope" I overheard at the last DConf,
and I believe it has been added to the official documentation
here: https://dlang.org/spec/expression.html#new_expressions
If a NewExpression is used as an init
On 10/17/2018 01:53 PM, Vijay Nayar wrote:
> https://dlang.org/spec/expression.html#new_expressions
>
> If a NewExpression is used as an initializer for a function local
> variable with
> scope storage class, and the ArgumentList to new is empty, then the
> instance is
> allocated
On Wednesday, 17 October 2018 at 20:41:24 UTC, Ali Çehreli wrote:
On 10/17/2018 01:24 PM, Vijay Nayar wrote:
I have a snippet of code like this:
scope chordAngle = new S1ChordAngle(_center,
other._center);
return _radius + other._radius >= chordAngle;
The reason the "scope" temporar
On Wednesday, 17 October 2018 at 20:51:29 UTC, Stanislav Blinov
wrote:
On Wednesday, 17 October 2018 at 20:24:56 UTC, Vijay Nayar
wrote:
I have a snippet of code like this:
scope chordAngle = new S1ChordAngle(_center,
other._center);
return _radius + other._radius >= chordAngle;
The r
On Wednesday, 17 October 2018 at 20:24:56 UTC, Vijay Nayar wrote:
I have a snippet of code like this:
scope chordAngle = new S1ChordAngle(_center, other._center);
return _radius + other._radius >= chordAngle;
The reason the "scope" temporary variable exists is to avoid a
heap allocation
On 10/17/2018 12:32 AM, aliak wrote:
Hi,
Is there any notion of lazy vars in D (i see that there're parameters)?
i.e:
struct S {
//...
int y;
//...
}
lazy S x = () {
// do some heavy stuff
}();
if (condition) {
func(x.y); // heavy stuff evaluated here
}
Cheers,
- Ali
I have a snippet of code like this:
scope chordAngle = new S1ChordAngle(_center, other._center);
return _radius + other._radius >= chordAngle;
The reason the "scope" temporary variable exists is to avoid a
heap allocation and instead prefer a value be created on the
stack. Is there a w
On 10/17/2018 01:24 PM, Vijay Nayar wrote:
I have a snippet of code like this:
scope chordAngle = new S1ChordAngle(_center, other._center);
return _radius + other._radius >= chordAngle;
The reason the "scope" temporary variable exists is to avoid a heap
allocation and instead prefer a
On 10/17/18 2:03 PM, Carl Sturtivant wrote:
On Monday, 15 October 2018 at 13:39:59 UTC, Steven Schveighoffer wrote:
But that's just the thing -- merge sort *does* depend on the container
type. It requires the ability to rearrange the elements structurally,
since you merge the sets of items to
On Monday, 15 October 2018 at 13:39:59 UTC, Steven Schveighoffer
wrote:
But that's just the thing -- merge sort *does* depend on the
container type. It requires the ability to rearrange the
elements structurally, since you merge the sets of items
together. This requires making another list fr
On Wednesday, 17 October 2018 at 07:01:21 UTC, test wrote:
test1:
module test1;
import test2;
enum X = getR(1,3);
void main(string[] args){}
test2:
module test2;
struct R {
int i;
}
R[] getR(int a, int b){
R[] r;
r ~= R(a);
On Wednesday, 17 October 2018 at 00:12:13 UTC, H. S. Teoh wrote:
I'm not sure what's the reasoning behind the saying that
throwing exceptions in ctors is bad, but exceptions are exactly
the kind of thing designed for handling this sort of situation.
If the parser detects a problem early (i.e.,
On Wednesday, 17 October 2018 at 15:51:21 UTC, Codifies wrote:
okay I should have carried on reading the blog, its so
uninitialized values stick out when debugging...
Indeed, the initial value is not supposed to be useful, it's
there because dealing with garbage memory when forgetting to
init
On Wednesday, 17 October 2018 at 15:48:16 UTC, Codifies wrote:
I'd have thought it ought to be 0.0 ?
So far I seen carefully considered and sensible reasons for
doing things in D, so why NAN ?
You are supposed to initialize your own variables explicitly. NaN
is a somewhat easy way to indicat
On Wednesday, 17 October 2018 at 15:48:16 UTC, Codifies wrote:
I'd have thought it ought to be 0.0 ?
So far I seen carefully considered and sensible reasons for
doing things in D, so why NAN ?
okay I should have carried on reading the blog, its so
uninitialized values stick out when debuggin
I'd have thought it ought to be 0.0 ?
So far I seen carefully considered and sensible reasons for doing
things in D, so why NAN ?
On Wednesday, 17 October 2018 at 14:06:49 UTC, FrankLike wrote:
Where can get the new dmd or ldc2 that's no 'Trojan horse
virus' ?
https://dlang.org/download.html
On Wednesday, 17 October 2018 at 13:50:03 UTC, Stanislav Blinov
wrote:
On Wednesday, 17 October 2018 at 13:48:04 UTC, FrankLike wrote:
What can I do?
Delete the bloatware that you downloaded.
Where can get the new dmd or ldc2 that's no 'Trojan horse virus' ?
On Wednesday, 17 October 2018 at 13:48:04 UTC, FrankLike wrote:
What can I do?
Delete the bloatware that you downloaded.
Hi,teacher:
I like D lang,when I download the soft from
http://www.360totalsecurity.com/en/, but I find, the link.exe of
dmd or ldc2,all have the ‘Trojan horse virus’.
dmd.2.082.1.windows.7z:HEUR/QVM19.1.92C9.Malware.Gen
file MD5:91ce2a59f06151902a1f3fc49e0a4752
ldc2-7e9db717-window
On Wednesday, 17 October 2018 at 09:53:22 UTC, Dukc wrote:
Whatever iterates through the range could then throw an
appopriate exception when it encounters an error token.
Exceptions in a parser? Monsieur knows his perversion.
On Tuesday, 16 October 2018 at 22:59:50 UTC, Dennis wrote:
[snip]
The first thing to consider for invalid tokens, at least for me,
would be to either have popFront set empty to true, or set front
to some value representing a parsing error. A programming
language parser almost certainly needs
On Wednesday, 17 October 2018 at 07:32:37 UTC, aliak wrote:
Hi,
Is there any notion of lazy vars in D (i see that there're
parameters)?
i.e:
struct S {
//...
int y;
//...
}
lazy S x = () {
// do some heavy stuff
}();
if (condition) {
func(x.y); // heavy stuff evaluated here
}
On Wednesday, 17 October 2018 at 03:37:21 UTC, Ky-Anh Huynh wrote:
Hi,
I need to build some static binaries with LDC. I also need to
execute builds on both platform 32-bit and 64-bit.
From Docker Hub there are two image groups:
* language/ldc (last update 5 months ago)
* dlang2/ldc-ubuntu (
Hi,
Is there any notion of lazy vars in D (i see that there're
parameters)?
i.e:
struct S {
//...
int y;
//...
}
lazy S x = () {
// do some heavy stuff
}();
if (condition) {
func(x.y); // heavy stuff evaluated here
}
Cheers,
- Ali
On Wednesday, 17 October 2018 at 02:54:26 UTC, test wrote:
I need get the Route UDA only for method without (static
methods, property, constructor, destructor), dont know how to
do it.
1) Note that __traits(allMembers, T) gets you a tuple of names,
not actual member aliases.
2) Remember ther
test1:
module test1;
import test2;
enum X = getR(1,3);
void main(string[] args){}
test2:
module test2;
struct R {
int i;
}
R[] getR(int a, int b){
R[] r;
r ~= R(a);
r ~= R(b);
return r;
}
to build wi
On Wednesday, 17 October 2018 at 07:01:21 UTC, test wrote:
test2.d(3): Error: TypeInfo cannot be used with -betterC
the first problem is the error message is not clear and can be
improved.
And my question is how to workaround this to make it work with
betterC.
40 matches
Mail list logo