On Saturday, December 16, 2017 04:01:10 Marc via Digitalmars-d-learn wrote:
> how do I from class:
> > class Person {
> >
> > string name;
> > int age;
> >
> > }
>
> do:
> > auto c = [__traits(allMembers, Person)];
>
> then return only ["name", "age"] rather ["name, "age", "ctor",
> "toString" ..
On Friday, 15 December 2017 at 17:21:55 UTC, Vino wrote:
Hi All,
Request your help, Is it possible to an template array
something similar as below so that we can insert any type of
value(string, int etc). If possible can you provide me a
example of how to define such array.
Array!(Tuple!(
how do I from class:
class Person {
string name;
int age;
}
do:
auto c = [__traits(allMembers, Person)];
then return only ["name", "age"] rather ["name, "age", "ctor",
"toString" ... ]?
On Saturday, December 16, 2017 03:34:43 Marc via Digitalmars-d-learn wrote:
> I need to give a class C, read all user-defined members of it,
>
> both name and value dynamically. for example:
> > class C {
> >
> > string a;
> > string b;
> > string c;
> >
> > }
>
> then
>
> > Class c = new C()
I need to give a class C, read all user-defined members of it,
both name and value dynamically. for example:
class C {
string a;
string b;
string c;
}
then
Class c = new C();
// set c members...
enum string[] members = [__traits(allMembers, C)];
foreach(string member; members) {
On Friday, 15 December 2017 at 17:26:04 UTC, Vino wrote:
Hi All,
We are getting the above error message while posting any
message in this forum, can any look into this please.
Should be fixed now.
Google was classifying one monitoring service's emails as spam,
and completely rejecting anot
On Friday, 15 December 2017 at 21:55:12 UTC, Michael wrote:
On Friday, 15 December 2017 at 21:29:10 UTC, Jonathan M Davis
wrote:
On Friday, December 15, 2017 20:40:10 Ecstatic Coder via
Digitalmars-d-learn wrote:
It's taken me some time to find an implicit cast bug ("if
(my_sometimes_negative_i
On Friday, 15 December 2017 at 17:24:33 UTC, Vino wrote:
Hi Biotronic,
I was able to find a solution using container array and also
date formatting, below is the code, please do let me know if
you find any issue, as i have tested the script and it is
working as expected.
Program:
import st
On 12/15/17 10:08 AM, Kagamin wrote:
Maybe this https://issues.dlang.org/show_bug.cgi?id=18084
Thanks for looking into this. I created a PR to fix.
Szabo, can you please try with this patch and see if it fixes your issue?
https://github.com/dlang/phobos/pull/5932
-Steve
On Friday, 15 December 2017 at 21:29:10 UTC, Jonathan M Davis
wrote:
On Friday, December 15, 2017 20:40:10 Ecstatic Coder via
Digitalmars-d-learn wrote:
It's taken me some time to find an implicit cast bug ("if
(my_sometimes_negative_index >= this_array.length)"), while a
simple C++-like implic
On Friday, December 15, 2017 20:40:10 Ecstatic Coder via Digitalmars-d-learn
wrote:
> It's taken me some time to find an implicit cast bug ("if
> (my_sometimes_negative_index >= this_array.length)"), while a
> simple C++-like implicit-cast warning would have allowed me to
> find this nasty bug WAY
It's taken me some time to find an implicit cast bug ("if
(my_sometimes_negative_index >= this_array.length)"), while a
simple C++-like implicit-cast warning would have allowed me to
find this nasty bug WAY sooner...
On Friday, 15 December 2017 at 17:16:41 UTC, 12345swordy wrote:
Am I doing this right? I am expecting it to print "bob".
parent gets the container of the symbol (in this case, the
module), not the inheritance list.
You probably want BaseClassesTuple!tom[0] instead, which is the
class it inh
On Fri, Dec 15, 2017 at 05:21:55PM +, Vino via Digitalmars-d-learn wrote:
> Hi All,
>
> Request your help, Is it possible to an template array something
> similar as below so that we can insert any type of value(string, int
> etc). If possible can you provide me a example of how to define su
On Friday, 15 December 2017 at 08:57:23 UTC, Biotronic wrote:
On Thursday, 14 December 2017 at 22:47:15 UTC, dark777 wrote:
I know that this community is not from c ++, but for some time
I studied how to do overload of ostream operators in c ++ and
I even managed to get to this result, I got to
Hi All,
We are getting the above error message while posting any message
in this forum, can any look into this please.
On Tuesday, 12 December 2017 at 19:00:01 UTC, Biotronic wrote:
On Tuesday, 12 December 2017 at 15:19:35 UTC, Vino wrote:
import std.algorithm: filter, map, sort;
import std.container.array;
import std.file: SpanMode, dirEntries, isDir ;
import std.stdio: writefln;
import std.typecons: Tuple, tup
Hi All,
Request your help, Is it possible to an template array
something similar as below so that we can insert any type of
value(string, int etc). If possible can you provide me a example
of how to define such array.
Array!(Tuple!(T n))
From,
Vino.B
import std.stdio;
class bob
{
}
class tom : bob
{
}
void main()
{
writeln(__traits(identifier,__traits(parent,tom)));
}
Am I doing this right? I am expecting it to print "bob".
On Friday, 15 December 2017 at 01:43:04 UTC, Steven Schveighoffer
wrote:
So the CTFE interpreter doesn't like something to do with your
chain of ranges. This is not totally unexpected, as the CTFE
engine has lots of quirks that make it sometimes puke on valid
CTFE-able code.
:(
At this time,
Maybe this https://issues.dlang.org/show_bug.cgi?id=18084
That said, tempCString code is suspicious:
https://github.com/dlang/phobos/blob/master/std/internal/cstring.d#L221
If unittest-versioned exists calls release-versioned tempCString,
it will corrupt the stack. Try to replace 16 with 256 there and
recompile your code.
You said tests fail?
class SourceResult
{
private const
{
string file;
size_t line;
}
this(string fileName = __FILE__, size_t line = __LINE__, size_t
range = 6) nothrow
{
this.file = fileName;
this.
On Friday, 15 December 2017 at 05:19:04 UTC, Tofu Ninja wrote:
TypeInfo_Class.interfaces has TypeInfo_Class and not
TypeInfo_Interface?
Is this correct? Or is it a bug?
Doesn't make much sense to me.
Also the following code prints false so there are some
consequences to this.
import std.std
You can also try to call `exists` somewhere before this part of
code.
On 12/15/17 5:43 AM, Rene Zwanenburg wrote:
On Friday, 15 December 2017 at 01:49:56 UTC, Steven Schveighoffer wrote:
So... you plan on rendering more than 1000 frames per second?
I think in any case, even if the API allows it, you are probably not
getting much better resolution on your non-wi
On Friday, 15 December 2017 at 01:49:56 UTC, Steven Schveighoffer
wrote:
So... you plan on rendering more than 1000 frames per second?
I think in any case, even if the API allows it, you are
probably not getting much better resolution on your non-windows
systems.
Have you tried it anyway an
On Friday, 15 December 2017 at 09:24:07 UTC, Kagamin wrote:
Try printf debugging in case argument is invalid.
ah .. ok ...
I tried to debug the issue and it looks like the filename is
valid and there is no null value.
I am thinking that the value is destroyed before it reach the
`GetFileAt
15.12.2017 11:49, yes9111 пишет:
Hey Y'all,
I'm trying to write a simple utility class to read rows from a SQLite3
database using compile time parameters, but I've run into a weird problem.
https://pastebin.com/eTnbRjEd
If I try to instantiate a Reader class I'm hitting a linker error saying
Try printf debugging in case argument is invalid.
On Thursday, 14 December 2017 at 22:47:15 UTC, dark777 wrote:
I know that this community is not from c ++, but for some time
I studied how to do overload of ostream operators in c ++ and I
even managed to get to this result, I got to this result in
another post done here but I did not understan
Hey Y'all,
I'm trying to write a simple utility class to read rows from a
SQLite3 database using compile time parameters, but I've run into
a weird problem.
https://pastebin.com/eTnbRjEd
If I try to instantiate a Reader class I'm hitting a linker error
saying
Error 42: Symbol Undefined _s
32 matches
Mail list logo