On Friday, 21 July 2017 at 18:49:21 UTC, Cecil Ward wrote:
I was think about how to create a new type that holds packed
bcd values, of a choice of widths, that must fit into a
uint32_t or a uint64_t (not really long multi-byte objects). I
am not at all sure how to do it. I thought about using
On Saturday, 22 July 2017 at 01:04:48 UTC, Nicholas Wilson wrote:
On Friday, 21 July 2017 at 23:38:51 UTC, FoxyBrown wrote:
[...]
use opCmp in conjunction with __traits(allMembers,T)
struct Example
{
int a,b,c;
string d,e,f;
}
void difference(alias func, T)(T t1, T t2)
On Saturday, 22 July 2017 at 02:31:45 UTC, FoxyBrown wrote:
auto sss = "sc config \""~szSvcName~"\" start= disabled";
executeShell("sc config \""~szSvcName~"\" start= disabled");
but if I copy and paste the string in to an admin console, it
works fine:
sc config "W32Time" start= disabled
auto sss = "sc config \""~szSvcName~"\" start= disabled";
executeShell("sc config \""~szSvcName~"\" start= disabled");
but if I copy and paste the string in to an admin console, it
works fine:
sc config "W32Time" start= disabled
[SC] ChangeServiceConfig SUCCESS
szSvcName is W32Time.
It's
On Saturday, 22 July 2017 at 02:11:27 UTC, Mike Parker wrote:
On Saturday, 22 July 2017 at 01:45:29 UTC, solidstate1991 wrote:
Due to it's convenience, I was thinking on reading and writing
file headers by creating structs mirroring the layouts of
actual headers I would need. I've seen many
On Saturday, 22 July 2017 at 01:45:29 UTC, solidstate1991 wrote:
Due to it's convenience, I was thinking on reading and writing
file headers by creating structs mirroring the layouts of
actual headers I would need. I've seen many examples of this in
C, however I' struggling using the same
Due to it's convenience, I was thinking on reading and writing
file headers by creating structs mirroring the layouts of actual
headers I would need. I've seen many examples of this in C,
however I' struggling using the same methods through the use of
code.stdc.stdio, especially as I can't
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
On Friday, July 21, 2017 15:33:45 Domain via
Digitalmars-d-learn wrote:
After upgrade dmd to latest 2.075.0, my project no longer
build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved
external symbol _D3std8d
On Friday, 21 July 2017 at 23:38:51 UTC, FoxyBrown wrote:
On Friday, 21 July 2017 at 22:35:20 UTC, Era Scarecrow wrote:
On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote:
Is there a way to easily find the differences between to
struct instances? I would like to report only the
On Friday, 21 July 2017 at 22:35:20 UTC, Era Scarecrow wrote:
On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote:
Is there a way to easily find the differences between to
struct instances? I would like to report only the differences
e.g.,
writeln(s1 - s2);
prints only what is
On Friday, 21 July 2017 at 21:03:22 UTC, FoxyBrown wrote:
Is there a way to easily find the differences between to struct
instances? I would like to report only the differences
e.g.,
writeln(s1 - s2);
prints only what is different between s1 and s2.
This is entirely dependent on the
Is there a way to easily find the differences between to struct
instances? I would like to report only the differences
e.g.,
writeln(s1 - s2);
prints only what is different between s1 and s2.
On 07/21/2017 11:49 AM, Cecil Ward wrote:
I was think about how to create a new type that holds packed bcd values,
of a choice of widths, that must fit into a uint32_t or a uint64_t (not
really long multi-byte objects). I am not at all sure how to do it. I
thought about using a templated struct
On Friday, 21 July 2017 at 18:49:21 UTC, Cecil Ward wrote:
I was think about how to create a new type that holds packed
bcd values, of a choice of widths, that must fit into a
uint32_t or a uint64_t (not really long multi-byte objects). I
am not at all sure how to do it. I thought about using
On Friday, July 21, 2017 15:33:45 Domain via Digitalmars-d-learn wrote:
> After upgrade dmd to latest 2.075.0, my project no longer build:
>
> zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external
> symbol _D3std8d
> atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime
>
> and many
I was think about how to create a new type that holds packed bcd
values, of a choice of widths, that must fit into a uint32_t or a
uint64_t (not really long multi-byte objects). I am not at all
sure how to do it. I thought about using a templated struct to
simply wrap a uint of a chosen width,
https://dlang.org/changelog/2.075.0.html#split-std-datetime
After upgrade dmd to latest 2.075.0, my project no longer build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external
symbol _D3std8d
atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime
and many more. All about std.datetime.
On 7/21/17 10:21 AM, Timoses wrote:
I'd love to check whether a string value is the name of a type at run-time.
E.g.:
string a = "int";
string b = "im no type";
assert( isStringType(a) );
assert( !isStringType(b) );
or
struct TestStruct
{
int test;
}
string t = "TestStruct";
assert(
I'd love to check whether a string value is the name of a type at
run-time.
E.g.:
string a = "int";
string b = "im no type";
assert( isStringType(a) );
assert( !isStringType(b) );
or
struct TestStruct
{
int test;
}
string t = "TestStruct";
assert( isStringType(t) );
Is anything like
On Friday, 21 July 2017 at 07:42:28 UTC, Suliman wrote:
On Friday, 21 July 2017 at 07:30:07 UTC, Antonio Corbi wrote:
On Friday, 21 July 2017 at 07:08:34 UTC, Suliman wrote:
On Friday, 21 July 2017 at 06:19:43 UTC, Suliman wrote:
There reason of issue above is spaces before "#".
What wrong
On Friday, 21 July 2017 at 07:30:07 UTC, Antonio Corbi wrote:
On Friday, 21 July 2017 at 07:08:34 UTC, Suliman wrote:
On Friday, 21 July 2017 at 06:19:43 UTC, Suliman wrote:
There reason of issue above is spaces before "#".
What wrong with next regex https://dpaste.dzfl.pl/024a47ed2a56
I
On Friday, 21 July 2017 at 07:08:34 UTC, Suliman wrote:
On Friday, 21 July 2017 at 06:19:43 UTC, Suliman wrote:
There reason of issue above is spaces before "#".
What wrong with next regex https://dpaste.dzfl.pl/024a47ed2a56
I expect that it will select:
#Header
my header text
##SubHeader
On Friday, 21 July 2017 at 06:19:43 UTC, Suliman wrote:
There reason of issue above is spaces before "#".
What wrong with next regex https://dpaste.dzfl.pl/024a47ed2a56
I expect that it will select:
#Header
my header text
##SubHeader
my sub header text
Because: ^#{3}
There reason of issue above is spaces before "#".
25 matches
Mail list logo