On Monday, 22 April 2019 at 15:50:11 UTC, dangbinghoo wrote:
On Monday, 22 April 2019 at 13:10:45 UTC, Adam D. Ruppe wrote:
On Monday, 22 April 2019 at 11:04:49 UTC, dangbinghoo wrote:
alias ifr_ifrn.ifrn_nameifr_name; /* interface name */
So, how to do alias for a C struct
On 04/22/2019 03:29 PM, Andre Pany wrote:
> I wonder wheter std.stdio is missing a readfln function. Which executes
> readln, strips the #10#13 characters and then executes formattedRead.
> Does that make sense to you?
Makes sense but what we are missing is standard streaming (like C++'s
overlo
On Monday, 22 April 2019 at 22:08:33 UTC, Ali Çehreli wrote:
On 04/22/2019 01:45 PM, Andre Pany wrote:
Hi,
following the example from
http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and
dos console).
The code from the example does not work,
w
On Monday, 22 April 2019 at 20:45:54 UTC, Andre Pany wrote:
The code from the example does not work,
writeln is never executed.
For "%s" with a string argument, it reads ALL of stdin into that
string. This means you need to send an end-of-file indicator to
the program. ctrl+z on Windows does
On Monday, 22 April 2019 at 19:57:11 UTC, aliak wrote:
On Monday, 22 April 2019 at 08:02:06 UTC, Arun Chandrasekaran
wrote:
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = B.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
On 04/22/2019 01:45 PM, Andre Pany wrote:
Hi,
following the example from http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and dos console).
The code from the example does not work,
writeln is never executed.
import std;
void main()
{
while(
On Monday, 22 April 2019 at 19:32:27 UTC, Adam D. Ruppe wrote:
On Monday, 22 April 2019 at 19:02:57 UTC, Emmanuelle wrote:
Hello! Does `__traits(getAttributes, ...)` return UDAs in the
order they were declared in the source code, or is it
unspecified?
I think that is defined:
https://dlang.o
Hi,
following the example from http://ddili.org/ders/d.en/input.html,
I try to read a value from console on windows (powershell and dos
console).
The code from the example does not work,
writeln is never executed.
import std;
void main()
{
while(true)
{
string
On Monday, 22 April 2019 at 08:02:06 UTC, Arun Chandrasekaran
wrote:
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = B.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
a.aa = 4; // fails
}
https://run.dlang.io/is/kXaVy2
On Monday, 22 April 2019 at 19:02:57 UTC, Emmanuelle wrote:
Hello! Does `__traits(getAttributes, ...)` return UDAs in the
order they were declared in the source code, or is it
unspecified?
I think that is defined:
https://dlang.org/spec/attribute.html#uda
"If there are multiple UDAs in scope
Hello! Does `__traits(getAttributes, ...)` return UDAs in the
order they were declared in the source code, or is it unspecified?
Saw this tool and thought D could probably do something like this
pretty easily. Is there such a tool out there already?
https://github.com/cool-RR/pysnooper
Or would this not be easy at all with D?
On Monday, 22 April 2019 at 15:45:52 UTC, Arun Chandrasekaran
wrote:
On Monday, 22 April 2019 at 11:04:49 UTC, dangbinghoo wrote:
hi all,
as now we don't have the net/if.h binding, I need to do struct
ifreq binding myself, here's my code:
[...]
Looks like we both were working on the same t
On Monday, 22 April 2019 at 13:10:45 UTC, Adam D. Ruppe wrote:
On Monday, 22 April 2019 at 11:04:49 UTC, dangbinghoo wrote:
alias ifr_ifrn.ifrn_nameifr_name; /* interface name */
So, how to do alias for a C struct member?
D doesn't support this kind of alias. There's two
On Monday, 22 April 2019 at 11:04:49 UTC, dangbinghoo wrote:
hi all,
as now we don't have the net/if.h binding, I need to do struct
ifreq binding myself, here's my code:
[...]
Looks like we both were working on the same thing, few hours
apart.
https://forum.dlang.org/post/nkbnknlgmcwaivpp
see this other thread for possible solutions too
https://forum.dlang.org/post/anasidaotexgfkyiq...@forum.dlang.org
On Monday, 22 April 2019 at 14:07:11 UTC, Alex wrote:
On Monday, 22 April 2019 at 08:02:06 UTC, Arun Chandrasekaran
wrote:
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = b.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
On Monday, 22 April 2019 at 13:05:03 UTC, Adam D. Ruppe wrote:
On Monday, 22 April 2019 at 10:36:23 UTC, dokutoku wrote:
How can I solve this problem?
I played with this last week, try adding
-L--export-dynamic
to your ldc command line to build.
I mentioned it briefly on my blog last week
On Monday, 22 April 2019 at 08:02:06 UTC, Arun Chandrasekaran
wrote:
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = b.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
a.aa = 4; // fails
}
https://run.dlang.io/is/kXaVy2
On Monday, 22 April 2019 at 11:04:49 UTC, dangbinghoo wrote:
alias ifr_ifrn.ifrn_nameifr_name; /* interface name */
So, how to do alias for a C struct member?
D doesn't support this kind of alias. There's two options:
1) just write the full name in the code.
ifreq ifr;
On Monday, 22 April 2019 at 10:36:23 UTC, dokutoku wrote:
How can I solve this problem?
I played with this last week, try adding
-L--export-dynamic
to your ldc command line to build.
I mentioned it briefly on my blog last week
http://dpldocs.info/this-week-in-d/Blog.Posted_2019_04_15.html#w
hi all,
as now we don't have the net/if.h binding, I need to do struct
ifreq binding myself, here's my code:
struct ifreq {
private union ifr_ifrn {
byte[IFNAMSIZ] ifrn_name; /* if name, e.g. "en0" */
}
private union ifr_ifru {
I try to use wasm with LDC, but I can not load wasm functions
with the following message even if I write it the same as the
"Generating WebAssembly with LDC" page on wiki
TypeError: exports.add is not a function
How can I solve this problem?
On Sunday, 21 April 2019 at 21:04:52 UTC, Patrick Schluter wrote:
On Thursday, 18 April 2019 at 12:00:10 UTC, ikod wrote:
On Wednesday, 17 April 2019 at 16:27:02 UTC, Adam D. Ruppe
wrote:
D programs are a vital part of my home computer
infrastructure. I run some 60 D processes at almost any
ti
On Monday, 22 April 2019 at 08:02:06 UTC, Arun Chandrasekaran
wrote:
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = B.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
a.aa = 4; // fails
}
https://run.dlang.io/is/kXaVy2
What am I doing wrong here?
struct A
{
union B
{
int bb;
}
B b;
alias aa = B.bb;
}
void main()
{
A a = A();
// a.b.bb = 4; // works
a.aa = 4; // fails
}
https://run.dlang.io/is/kXaVy2
26 matches
Mail list logo