On Sunday, 23 February 2020 at 03:26:17 UTC, Steven Schveighoffer
wrote:
On 2/22/20 10:01 PM, Russ wrote:
Is there some newer feature I should be using?
scope escapes are only disallowed in @safe code.
Adding @safe: to the top of this file makes it not compile with
a complaint:
Error: scop
On 2/22/20 10:01 PM, Russ wrote:
Is there some newer feature I should be using?
scope escapes are only disallowed in @safe code.
Adding @safe: to the top of this file makes it not compile with a complaint:
Error: scope variable z assigned to non-scope b.foo
Which I think is what you expected
Hi, I've been playing around with having classes allocated on the
stack. I am using the scope keyword for local variables. I
assumed that the scope modifier for function parameters was
designed to prevent these from escaping, but the code below
doesn't show any errors. Is there some newer featu
On 2/22/20 2:29 PM, Robert M. Münch wrote:
I don't get how I can create a dynamic array of Cycle buffers of size 2
which use a struct.
struct ms {
int a;
int b;
}
ms[2] msBuffer;
alias circularStructBuffersT = typeof(cycle(msBuffer));
circularStructBuffersT[int] circularStruct
I don't get how I can create a dynamic array of Cycle buffers of size 2
which use a struct.
struct ms {
int a;
int b;
}
ms[2] msBuffer;
alias circularStructBuffersT = typeof(cycle(msBuffer));
circularStructBuffersT[int] circularStructBuffers;
int i = 2;
auto x = circularStructBuffe
On Saturday, 22 February 2020 at 15:18:09 UTC, kinke wrote:
I'd suggest to first hack the compiler, so that it doesn't
predefine the host OS, but a new version for your OS (and check
whether predefining `version (Posix)` is appropriate or not).
That way, you'll hit static asserts when compili
On Saturday, 22 February 2020 at 18:00:16 UTC, Vinay Sajip wrote:
The following program won't compile if I uncomment the if
statement:
void main()
{
Variant v = complex(1.0, 1.0);
//if (v.peek!(Complex)) {
//writeln("Complex");
//}
writeln(v);
}
I get the same error wi
The following program won't compile if I uncomment the if
statement:
void main()
{
Variant v = complex(1.0, 1.0);
//if (v.peek!(Complex)) {
//writeln("Complex");
//}
writeln(v);
}
I get the same error with v.peek!(complex), which is:
Error: template instance peek!(Comp
On Saturday, 22 February 2020 at 12:24:56 UTC, drathier wrote:
On Saturday, 22 February 2020 at 11:53:38 UTC, Dennis wrote:
On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw
wrote:
Is there a dmd flag that shows the code after template
instantiations has been performed?
The -vcg-ast
On Saturday, 22 February 2020 at 13:20:40 UTC, IGotD- wrote:
Do we have any guide for OS porting?
I'd suggest to first hack the compiler, so that it doesn't
predefine the host OS, but a new version for your OS (and check
whether predefining `version (Posix)` is appropriate or not).
That way,
On Saturday, 22 February 2020 at 13:20:40 UTC, IGotD- wrote:
I'm trying to find information how to port D, especially the D
runtime to a proprietary OS. The OS support seems to be
scattered around several files with a lot version (OS)
switches. This makes kind of hard to understand what you hav
What's the fastest linker to use when building using dmd or ldc
on Mac?
My application takes under 1 sec to compiler and 2-3 secs to link.
I'm trying to find information how to port D, especially the D
runtime to a proprietary OS. The OS support seems to be scattered
around several files with a lot version (OS) switches. This makes
kind of hard to understand what you have to implement. Also, what
happens if you only have partial s
On Saturday, 22 February 2020 at 11:53:38 UTC, Dennis wrote:
On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw
wrote:
Is there a dmd flag that shows the code after template
instantiations has been performed?
The -vcg-ast flag does that.
The d.cg files still contain templates, so it
On Saturday, 22 February 2020 at 08:29:32 UTC, 9il wrote:
On Friday, 21 February 2020 at 13:42:24 UTC, Andre Pany wrote:
Mir is great and actually I try to rewrite some Python Pandas
Dataframe index logic.
Maybe mir.series [1] can work for you.
Series!(Key*, Value*) - is a pair of two 1D ndsl
On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw wrote:
We're looking for a way to speed up compilation of
template-heavy code. So we are trying to find out which parts
of the code that is most costly to compile.
Is there a dmd flag that shows the code after template
instantiations
On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw wrote:
We're looking for a way to speed up compilation of
template-heavy code. So we are trying to find out which parts
of the code that is most costly to compile.
Is there a dmd flag that shows the code after template
instantiations
On Saturday, 22 February 2020 at 11:26:19 UTC, Per Nordlöw wrote:
Is there a dmd flag that shows the code after template
instantiations has been performed?
The -vcg-ast flag does that.
We're looking for a way to speed up compilation of template-heavy
code. So we are trying to find out which parts of the code that
is most costly to compile.
Is there a dmd flag that shows the code after template
instantiations has been performed? Or some other dmd flag that
can help out findi
On Friday, 21 February 2020 at 13:36:58 UTC, mark wrote:
I thought that onChangeState was never called before the Label
was constructed
That's one of the 'features' (wink wink) of GtkD. It's possible
to call the function as a class function (uninstantiated, in
other words) or as an object fu
On Friday, 21 February 2020 at 13:42:24 UTC, Andre Pany wrote:
Mir is great and actually I try to rewrite some Python Pandas
Dataframe index logic.
Maybe mir.series [1] can work for you.
Series!(Key*, Value*) - is a pair of two 1D ndslices, they can be
sorted according to the first one ndslic
21 matches
Mail list logo