John Colvin, el 7 de July a las 22:39 me escribiste:
On Sunday, 7 July 2013 at 20:08:19 UTC, Leandro Lucarella wrote:
Andrei Alexandrescu, el 7 de July a las 09:06 me escribiste:
On 7/7/13 8:55 AM, Andrei Alexandrescu wrote:
Here's a conformant implementation for reference:
On Sunday, 7 July 2013 at 22:03:17 UTC, Walter Bright wrote:
On 7/7/2013 5:09 AM, Andrej Mitrovic wrote:
That's a cool teaser, but how did the discussion continue? :)
Generally along these lines:
And you, Scarecrow, have the effrontery to ask for a brain,
you billowing bale of bovine
On Monday, 8 July 2013 at 09:08:18 UTC, Leandro Lucarella wrote:
John Colvin, el 7 de July a las 22:39 me escribiste:
On Sunday, 7 July 2013 at 20:08:19 UTC, Leandro Lucarella
wrote:
Andrei Alexandrescu, el 7 de July a las 09:06 me escribiste:
On 7/7/13 8:55 AM, Andrei Alexandrescu wrote:
On Thursday, 4 July 2013 at 16:47:36 UTC, Andrei Alexandrescu
wrote:
Videos for my two NDC 2013 talks are now online. Generic
Programming Galore using D at http://vimeo.com/68378925 and the
HipHop Virtual Machine at http://vimeo.com/68383350.
Andrei
With regards to min in the first talk:
On Friday, 5 July 2013 at 23:04:28 UTC, Adam D. Ruppe wrote:
BTW I'll push another commit to jsvar.d and script.d over the
weekend. I got return/break/continue working now (in the cases
I've tried at least, simple ones).
I just pushed another commit to github that includes this and
other
On Saturday, 6 July 2013 at 14:18:35 UTC, Andrei Alexandrescu
wrote:
Perfect! Adam, no more excuses :o).
Now I just have to decide what to actually write... I don't know,
I think the OP code mostly speaks for itself and I don't even
have much to add beyond it.
On Monday, 8 July 2013 at 14:15:40 UTC, Adam D. Ruppe wrote:
Now I just have to decide what to actually write...
I wrote something but it is kinda meandering.
http://wiki.dlang.org/Dynamic_typing
Hi Iain,
On Sunday, 7 July 2013 at 22:05:10 UTC, Iain Buclaw wrote:
Not sure this is common knowledge, as am still getting
questions / propositions off people for this. Through
collaboration of the gcc maintainers at Debian/Ubuntu, gdc has
been merged in with the gcc source package, and is
John Colvin, el 8 de July a las 12:38 me escribiste:
I prefer this one :p http://www.gnu.org/fun/jokes/echo-msg.html
From the opengroup spec:
If the first operand is -n, or if any of the operands contain a
backslash character, the results are implementation-defined.
On Monday, 8 July 2013 at 16:08:17 UTC, Leandro Lucarella wrote:
John Colvin, el 8 de July a las 12:38 me escribiste:
I prefer this one :p
http://www.gnu.org/fun/jokes/echo-msg.html
From the opengroup spec:
If the first operand is -n, or if any of the operands
contain a
backslash character,
On 7/8/13 6:49 AM, Dicebot wrote:
On Thursday, 4 July 2013 at 16:47:36 UTC, Andrei Alexandrescu wrote:
Videos for my two NDC 2013 talks are now online. Generic Programming
Galore using D at http://vimeo.com/68378925 and the HipHop Virtual
Machine at http://vimeo.com/68383350.
Andrei
Am I
On Sunday, 7 July 2013 at 15:00:43 UTC, John Colvin wrote:
I had some free time so I decided I should start a simple blog
about D, implementing some unix utilities. I've
(unsurprisingly) started with echo.
http://foreach-hour-life.blogspot.co.uk/
It's nothing ground-breaking, but every
On Monday, 8 July 2013 at 17:39:46 UTC, Baz wrote:
On Sunday, 7 July 2013 at 15:00:43 UTC,
That's interesting...but I'm not a big fan of collecting
hundreds
of links...I think that someone should create something like
http://www.delphifeeds.com/ but for D...
blogs.dlang.org ... ?
There'd
On Monday, 8 July 2013 at 17:39:46 UTC, Baz wrote:
On Sunday, 7 July 2013 at 15:00:43 UTC, John Colvin wrote:
I had some free time so I decided I should start a simple blog
about D, implementing some unix utilities. I've
(unsurprisingly) started with echo.
On Monday, 8 July 2013 at 17:53:45 UTC, Joseph Rushton Wakeling
wrote:
There'd need to be some way of filtering upstreams by topic. I
blog about D, but not _just_ about D.
http://planet.dsource.org has already been mentioned and it does
filter by tags.
On Monday, 8 July 2013 at 17:53:45 UTC, Joseph Rushton Wakeling
wrote:
On Monday, 8 July 2013 at 17:39:46 UTC, Baz wrote:
On Sunday, 7 July 2013 at 15:00:43 UTC,
That's interesting...but I'm not a big fan of collecting
hundreds
of links...I think that someone should create something like
On Monday, 8 July 2013 at 18:54:30 UTC, Baz wrote:
Fedora a few years ago has proposed the D language as a part of
their very extremist open source ashole repository. The fact
is that D is totally missing from their dev packages (sudo yum
i want some only opensource douche stuff even if I have
On Monday, 8 July 2013 at 18:54:30 UTC, Baz wrote:
You're wrong, there's a real need for promoting D worldwide.
Did I say otherwise? I am not sure you are reacting to what I
actually wrote.
Just for example, this mainstream (french) programming site has
(had?) a forum for D which is not
On 8 July 2013 19:54, Baz burg.bas...@yahoo.com wrote:
On Monday, 8 July 2013 at 17:53:45 UTC, Joseph Rushton Wakeling wrote:
On Monday, 8 July 2013 at 17:39:46 UTC, Baz wrote:
On Sunday, 7 July 2013 at 15:00:43 UTC,
That's interesting...but I'm not a big fan of collecting hundreds
of
Not sure if a developer should look for excuses for sticking with
suboptimal design.
On 07/07/2013 12:44 PM, Dicebot wrote:
On Sunday, 7 July 2013 at 17:37:37 UTC, 1100110 wrote:
Please, I still have a physical keyboard on my new smartphone.
Put your money where your mouth is.
I must admit it becomes increasingly harder to find ones. I am not ware
of a single new model that
On 7/7/2013 7:42 PM, Timothee Cour wrote:
Can't speak for Siri, but the deep learning architecture used in google now has
little to do with Eliza. Nor is the recognition accuracy. Try it if you haven't!
Can you give some examples demonstrating this?
On 2013-07-08 04:10, Manu wrote:
Hmmm, this is an interesting point.
I initially thought this was desirable, it could be useful.
But now that you point it out, I guess the point you are making is that
they will all mangle separately anyway?
That seems problematic, because since all have the
On Sunday, 7 July 2013 at 20:35:49 UTC, Walter Bright wrote:
On 7/7/2013 8:38 AM, Andrei Alexandrescu wrote:
All Siri does is recognize a set of stock patterns, just like
Eliza. Step out of that, even slightly, and it reverts to a
default, again, just like Eliza.
Of course, Siri had a much
deadalnix:
[] and [:] aren't even remotely close to be strongly typed.
It's a matter of degrees of how much strongly typed things are.
The current situation is significantly more weakly typed than
what I have proposed. It doesn't even tell apart a light
reference from a fat pointer.
Bye,
On Sun, 7 Jul 2013 16:51:32 -0700
H. S. Teoh hst...@quickfur.ath.cx wrote:
On Sun, Jul 07, 2013 at 02:38:15AM -0400, Nick Sabalausky wrote:
Yea. I don't accept that smartphones are really phones. They're
PDA's with telephony tacked on.
Ah, what's in a name? If they want to call PDA's
On Monday, 8 July 2013 at 09:02:44 UTC, Tommi wrote:
On Sunday, 7 July 2013 at 20:35:49 UTC, Walter Bright wrote:
On 7/7/2013 8:38 AM, Andrei Alexandrescu wrote:
All Siri does is recognize a set of stock patterns, just
like Eliza. Step out of that, even slightly, and it reverts
to a default,
On Monday, 8 July 2013 at 03:03:30 UTC, Martin Nowak wrote:
On 07/07/2013 01:19 PM, Marco Leise wrote:
If you wanted to save on template instantiations for every
possible attribute combination, you are doing it wrong. Those
are already 3 duplicate templates with binary identical
functions
On 07/06/2013 03:34 AM, Manu wrote:
Okay, so I feel like this should be possible, but I can't make it work...
I want to use template deduction to deduce the argument type, but I want
the function arg to be Unqual!T of the deduced type, rather than the
verbatim type of the argument given.
I've
On Monday, 8 July 2013 at 10:48:05 UTC, John Colvin wrote:
For me, the most interesting question in all of this is What
is intelligence?. While that might seem the preserve of
philosophers, I believe that computers have the ability to (and
already do) demonstrate new and diverse types of
The following code inserts properties for each type,
auto name = Value~((i == 0) ? : to!string(i++));
always as the i == 0 evaluate to true.
My question is, why the heck is it so hard to use basic
programming structs inside CTFE's? I know that CTFE's have to
work at run time also, so
On 7/8/2013 2:02 AM, Tommi wrote:
I don't buy that. Humans don't process data like computers do.
Humans don't and _can't_ process data like computers do, but computers _can_
process data like humans do.
Human brain does it's computation in a highly parallel manner, but signals run
much slower
On Monday, 8 July 2013 at 11:56:40 UTC, JS wrote:
The following code inserts properties for each type,
auto name = Value~((i == 0) ? : to!string(i++));
always as the i == 0 evaluate to true.
1. obviously ints work because the code below works with i as a
counter but we can't do a simple
On Monday, 8 July 2013 at 11:56:40 UTC, JS wrote:
...
CTFE has nothing to do with it.
void main()
{
import std.stdio;
int i = 0;
writeln(i == 0 ? i : i++);
writeln(i);
}
i++ is evaluated lazy here. I don't know if it is a bug or
matches the spec.
On Monday, 8 July 2013 at 12:03:52 UTC, JS wrote:
On Monday, 8 July 2013 at 11:56:40 UTC, JS wrote:
The following code inserts properties for each type,
auto name = Value~((i == 0) ? : to!string(i++));
always as the i == 0 evaluate to true.
1. obviously ints work because the code below
P.S. you speak about (i == 0) but your snippet has (i 0)
On Monday, 8 July 2013 at 12:09:55 UTC, Dicebot wrote:
P.S. you speak about (i == 0) but your snippet has (i 0)
Thats simply because I forgot to change it.. I tried various
things... it's not relevant...
the problem is back... when I remove the compare on i name is
updated, when I don' t
On Monday, 8 July 2013 at 12:08:44 UTC, JS wrote:
the issue with the foreach is still under question though, when
I try to use a for loop with i and access TT[i] I get an error
about i not being compile time readable. (maybe this is because
of how the type tuple is defined? possibly need a
On Monday, 8 July 2013 at 12:04:14 UTC, Walter Bright wrote:
Except that we have no idea how brains actually work.
Are fruit flies self-aware? Probably not. Are dogs? Definitely.
So at what point between fruit flies and dogs does
self-awareness start?
We have no idea. None at all.
+1
Hello there. Have you read my answer? The very first one?
1) i will never be incremented there and CTFE has nothing to do
with it.
2) This topic should have been in D.learn
3) If you won't tone down your arrogance, soon there will be no
one left willing to answer you.
On Monday, 8 July 2013 at 12:04:14 UTC, Walter Bright wrote:
On 7/8/2013 2:02 AM, Tommi wrote:
I don't buy that. Humans don't process data like computers do.
Humans don't and _can't_ process data like computers do, but
computers _can_
process data like humans do.
Human brain does it's
On Monday, 8 July 2013 at 11:56:40 UTC, JS wrote:
The following code inserts properties for each type,
auto name = Value~((i == 0) ? : to!string(i++));
always as the i == 0 evaluate to true.
My question is, why the heck is it so hard to use basic
programming structs inside CTFE's? I know
On Monday, 8 July 2013 at 12:08:39 UTC, Dicebot wrote:
On Monday, 8 July 2013 at 11:56:40 UTC, JS wrote:
...
CTFE has nothing to do with it.
void main()
{
import std.stdio;
int i = 0;
writeln(i == 0 ? i : i++);
writeln(i);
}
i++ is evaluated lazy here.
On Monday, 8 July 2013 at 12:41:22 UTC, John Colvin wrote:
The i++ in to!string not having any effect is rather
surprising, I agree.
Scratch that, there's nothing surprising about it at all. i == 0
on the first iteration and therefore the first branch of the
ternary isn't executed. The same
On Wednesday, 3 July 2013 at 12:24:33 UTC, Wyatt wrote:
This is something I was discussing with a friend recently, and
we agreed it would be cool if there were set of operators with
no definition until overloaded, so you could use e.g. (.) for
dot product, (*) for cross product, (+) (or maybe
On Monday, 8 July 2013 at 12:04:14 UTC, Walter Bright wrote:
On 7/8/2013 2:02 AM, Tommi wrote:
I don't buy that. Humans don't process data like computers do.
Humans don't and _can't_ process data like computers do, but
computers _can_
process data like humans do.
Human brain does it's
On Monday, 8 July 2013 at 13:31:41 UTC, Dicebot wrote:
...
And, yeah, the very point I wanted to mention - while concept of
self-awareness is useless on its own, it is quite interesting in
scope of first problem - how does a human brain reason about
someones self-awareness :)
On Monday, 8 July 2013 at 13:05:55 UTC, John Colvin wrote:
..
Problem A) Understanding how the human brain processes certain
types of information.
Problem B) Making a decision about what constitutes
self-awareness and where to draw the line.
Those are not equivalent problems in the
I would post this in d.learn, but I suspect there isn't an easy
answer so it would be good to have some serious discussion here.
Is there any way to create a thread that is totally free from the
garbage collector?
I.e.
Nothing in that thread will ever be scanned by the GC.
Therefore, when
If you make a thread using the operating system functions
directly, D would never know (I'm pretty sure) and thus it won't
be on the gc nor the list the gc uses to pause all threads.
On Monday, 8 July 2013 at 14:04:41 UTC, John Colvin wrote:
I would post this in d.learn, but I suspect there isn't an easy
answer so it would be good to have some serious discussion here.
Is there any way to create a thread that is totally free from
the garbage collector?
I.e.
Nothing in
On Monday, 8 July 2013 at 14:11:16 UTC, w0rp wrote:
On Monday, 8 July 2013 at 14:04:41 UTC, John Colvin wrote:
I would post this in d.learn, but I suspect there isn't an
easy answer so it would be good to have some serious
discussion here.
Is there any way to create a thread that is totally
On Mon, Jul 08, 2013 at 12:55:57AM -0500, 1100110 wrote:
[...]
And I haven't experienced the battery issues mentioned.
[...]
The battery will last half a day with my usage.
[...]
Heh.
The original complaint was that I have to charge the device every day.
And now you're telling me that charging
On Mon, Jul 08, 2013 at 03:34:43PM +0200, Dicebot wrote:
On Monday, 8 July 2013 at 13:31:41 UTC, Dicebot wrote:
...
And, yeah, the very point I wanted to mention - while concept of
self-awareness is useless on its own, it is quite interesting in
scope of first problem - how does a human
On Monday, 8 July 2013 at 14:16:46 UTC, John Colvin wrote:
On Monday, 8 July 2013 at 14:11:16 UTC, w0rp wrote:
We really need to implement a better GC. That's the very hard
but better solution.
We need to have a bchoice/b of GCs. There is no single
design that is right for every use case.
On Monday, 8 July 2013 at 14:28:33 UTC, H. S. Teoh wrote:
I love you guys. A thread about the merits of adding path append
operators to strings turns into a discussion about
self-awareness.
Brilliant. ;-)
I don't care about path append operators but tricks of human
consciousness is a an
On Monday, 8 July 2013 at 14:04:41 UTC, John Colvin wrote:
Is there any way to create a thread that is totally free from
the garbage collector?
Sure, just few pull request here, some pull requests there... ;)
On 07/06/2013 08:48 AM, Jonathan M Davis wrote:
Typing on smartphones is hell. I generally try and avoid it unless I
absolutely have to.
I was on a long train journey, I didn't have my laptop ... at the time it seemed
the right thing to do :-)
On Monday, 8 July 2013 at 14:11:15 UTC, Adam D. Ruppe wrote:
If you make a thread using the operating system functions
directly, D would never know (I'm pretty sure) and thus it
won't be on the gc nor the list the gc uses to pause all
threads.
Huh. Well that was easy. Presumably that means I
On Sun, Jul 07, 2013 at 10:24:12PM -0700, Jonathan M Davis wrote:
On Sunday, July 07, 2013 22:13:59 H. S. Teoh wrote:
since due to the bug that we can't have both a template and
non-template method of the same name
I believe that Kenji fixed that bug recently.
[...]
Kenji is awesome!! So
On Saturday, 6 July 2013 at 06:48:55 UTC, Jonathan M Davis wrote:
On Saturday, July 06, 2013 08:36:31 Joseph Rushton Wakeling
wrote:
Typing replies on a smartphone seems to carry a bit of a cost
in
textual accuracy :-(
Typing on smartphones is hell. I generally try and avoid it
unless I
On Monday, 8 July 2013 at 13:34:44 UTC, Dicebot wrote:
On Monday, 8 July 2013 at 13:31:41 UTC, Dicebot wrote:
...
And, yeah, the very point I wanted to mention - while concept
of self-awareness is useless on its own, it is quite
interesting in scope of first problem - how does a human brain
On Saturday, 6 July 2013 at 06:48:55 UTC, Jonathan M Davis wrote:
On Saturday, July 06, 2013 08:36:31 Joseph Rushton Wakeling
wrote:
Typing replies on a smartphone seems to carry a bit of a cost
in
textual accuracy :-(
Typing on smartphones is hell. I generally try and avoid it
unless I
On Monday, 8 July 2013 at 14:53:25 UTC, John Colvin wrote:
I wonder if one could somehow register a pre-existing thread
with std.concurrency, being careful not to introduce any
reference that lets in the garbage collector.
There is a thread_attachThis() in core.thread that Registers the
On 07/08/2013 04:55 PM, H. S. Teoh wrote:
On Sun, Jul 07, 2013 at 10:24:12PM -0700, Jonathan M Davis wrote:
On Sunday, July 07, 2013 22:13:59 H. S. Teoh wrote:
since due to the bug that we can't have both a template and
non-template method of the same name
I believe that Kenji fixed that bug
I'm getting a strange compiler error when using alloca in my
code. What's doubly strange is that I have 2 functions in the
same file needing to call alloca for the same purpose. It seems
to work fine in one of the functions, but uncommenting alloca in
the other causes this cryptic error
On Sun, Jul 07, 2013 at 01:55:16PM -0700, Jonathan M Davis wrote:
On Sunday, July 07, 2013 14:30:12 Iain Buclaw wrote:
On 6 July 2013 22:41, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Saturday, July 06, 2013 14:13:29 H. S. Teoh wrote:
Shouldn't the frame pointer be generated only if
On Sun, Jul 07, 2013 at 02:06:46PM +0200, Peter Alexander wrote:
[...]
The problem here is more general than this specific case. Any
template constraint on any function could fail to pass, and the best
error you'll get is that it couldn't match any function. Even if the
error messages were
On 7/8/2013 10:37 AM, Maxime Chevalier-Boisvert wrote:
I'm getting a strange compiler error when using alloca in my code.
Please post all bug reports go here:
http://d.puremagic.com/issues/
On Monday, 8 July 2013 at 17:37:10 UTC, Maxime Chevalier-Boisvert
wrote:
void foo(IRInstr instr)
{
auto s = TheStruct();
bar();
auto a = alloca(16);
}
Looks like this bug:
http://d.puremagic.com/issues/show_bug.cgi?id=3753
On 7/8/2013 6:31 AM, Dicebot wrote:
Well, second one is not really a scientific problem, it is a philosophical one.
Self-awareness is a very vague term with a lot of space for personal
interpretation. I don't even think it is worth speaking about.
If you consider that our brains evolved, and
On 7/8/2013 6:05 AM, John Colvin wrote:
Problem A) Understanding how the human brain processes certain types of
information.
Problem B) Making a decision about what constitutes self-awareness and where to
draw the line.
Those are not equivalent problems in the slightest.
I'm not so sure at
On Monday, 8 July 2013 at 18:37:30 UTC, Walter Bright wrote:
If you consider that our brains evolved, and self-awareness was
a result of evolution, then self-awareness presumably offers
some sort of survival benefit.
Following that line of reasoning, self-awareness becomes a real
phenomenon
On Monday, 8 July 2013 at 18:13:33 UTC, Walter Bright wrote:
On 7/8/2013 10:37 AM, Maxime Chevalier-Boisvert wrote:
I'm getting a strange compiler error when using alloca in my
code.
Please post all bug reports go here:
http://d.puremagic.com/issues/
Submitted a new issue:
http://herbsutter.com/2013/02/11/atomic-weapons-the-c-memory-model-and-modern-hardware/
Is D and DMD aware of those kind of issues with atomic?
On Monday, July 08, 2013 10:56:31 H. S. Teoh wrote:
On Sun, Jul 07, 2013 at 01:55:16PM -0700, Jonathan M Davis wrote:
On Sunday, July 07, 2013 14:30:12 Iain Buclaw wrote:
On 6 July 2013 22:41, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Saturday, July 06, 2013 14:13:29 H. S. Teoh
On Mon, Jul 08, 2013 at 05:48:55AM -0400, Nick Sabalausky wrote:
On Sun, 7 Jul 2013 16:51:32 -0700
H. S. Teoh hst...@quickfur.ath.cx wrote:
[...]
Yeah ever since my wife got an iPhone, our attempts to fall asleep
have been constantly interrupted by annoying dings and zings every
so often
On 7/8/2013 11:57 AM, Maxime Chevalier-Boisvert wrote:
Submitted a new issue: http://d.puremagic.com/issues/show_bug.cgi?id=10575
Thank you!
http://spaceindustrynews.com/mars-curiosity-rover-shoots-video-of-phobos-moon-rising-video/3694/
On Monday, 8 July 2013 at 18:10:45 UTC, H. S. Teoh wrote:
On Sun, Jul 07, 2013 at 02:06:46PM +0200, Peter Alexander wrote:
It's a tough situation and I think the only way this could even
reasonably be resolved is through some sophisticated IDE
integration. There is no way to display this kind
On Mon, 8 Jul 2013 12:21:24 -0700
H. S. Teoh hst...@quickfur.ath.cx wrote:
and all of the other stuff that insists on
accessing stuff they shouldn't need to access in order to function.
It always makes me suspicious when, for example, a single-player game
app requires full internet access,
On 07/08/2013 09:24 AM, H. S. Teoh wrote:
On Mon, Jul 08, 2013 at 12:55:57AM -0500, 1100110 wrote:
[...]
And I haven't experienced the battery issues mentioned.
[...]
The battery will last half a day with my usage.
[...]
Heh.
The original complaint was that I have to charge the device
On Mon, Jul 08, 2013 at 09:47:46PM +0200, Peter Alexander wrote:
On Monday, 8 July 2013 at 18:10:45 UTC, H. S. Teoh wrote:
On Sun, Jul 07, 2013 at 02:06:46PM +0200, Peter Alexander wrote:
It's a tough situation and I think the only way this could even
reasonably be resolved is through some
I don't know if this thread is dead but...
I have some comments/suggestions because I am considering
implementing something as well and if you want some help I'd be
willing. My thought would be to model it on Perl's CPAN. A
package should be a bare bones gzip of the source, a makefile,
On Monday, 8 July 2013 at 20:46:21 UTC, Kevin Kane wrote:
I don't know if this thread is dead but...
Have you considered dub? It seems like current main bet as D
package manager
http://registry.vibed.org/
On Mon, 8 Jul 2013 12:21:24 -0700
H. S. Teoh hst...@quickfur.ath.cx wrote:
They'd notice if your app was a superior browser that threatens the
dominance of Safari. :) Or a video player that *gasp* can play more
formats than the crippled built-in video player can (*ahem*VLC
player*cough*).
On 7/8/2013 11:54 AM, Dicebot wrote:
On Monday, 8 July 2013 at 18:37:30 UTC, Walter Bright wrote:
If you consider that our brains evolved, and self-awareness was a result of
evolution, then self-awareness presumably offers some sort of survival benefit.
Following that line of reasoning,
Walter Bright:
Except that we have no idea how brains actually work.
Are fruit flies self-aware? Probably not. Are dogs? Definitely.
So at what point between fruit flies and dogs does
self-awareness start?
We have no idea. None at all.
There are many things that are not yet known in
trying to use a lambda inside a sub template gives an error.
mixin template a
{
template b()
{
enum b = { }();
}
mixin(b!());
}
gives the error in the subject, removing the nesting or using a
function instead of a lamda produces no error, yet all are
essentially semantically
On Monday, 8 July 2013 at 12:11:36 UTC, Dicebot wrote:
On Monday, 8 July 2013 at 12:08:44 UTC, JS wrote:
the issue with the foreach is still under question though,
when I try to use a for loop with i and access TT[i] I get an
error about i not being compile time readable. (maybe this is
Ultimately, the point is, that I thought CTFE's were suppose to
be compile time runnable functions. The problem is, the actual
language grammar changes. can use i++ as an argument to a
template at runtime without issue but not at compile time... and
since this seems to be the case from the
On 07/09/13 00:57, JS wrote:
On Monday, 8 July 2013 at 12:11:36 UTC, Dicebot wrote:
On Monday, 8 July 2013 at 12:08:44 UTC, JS wrote:
the issue with the foreach is still under question though, when I try to
use a for loop with i and access TT[i] I get an error about i not being
compile time
On Monday, 8 July 2013 at 22:57:17 UTC, JS wrote:
int i = 0;
foreach(t; T)
{
string name = Value~((i==0) ? : (to!string(i)));
i++;
}
That increments i, both ctfe and rt.
vs
int i = 0;
foreach(t; T)
{
On Monday, 8 July 2013 at 23:36:46 UTC, John Colvin wrote:
On Monday, 8 July 2013 at 22:57:17 UTC, JS wrote:
int i = 0;
foreach(t; T)
{
string name = Value~((i==0) ? : (to!string(i)));
i++;
}
That increments i, both ctfe and rt.
Am Mon, 08 Jul 2013 21:04:01 +0200
schrieb Flamaros flamaros.xav...@gmail.com:
http://herbsutter.com/2013/02/11/atomic-weapons-the-c-memory-model-and-modern-hardware/
Is D and DMD aware of those kind of issues with atomic?
I haven't looked into the talk, but I can say this: D offers
atomic
Am Tue, 09 Jul 2013 01:02:12 +0200
schrieb JS js.m...@gmail.com:
Ultimately, the point is, that I thought CTFE's were suppose to
be compile time runnable functions. The problem is, the actual
language grammar changes. can use i++ as an argument to a
template at runtime without issue but
What is the situation regarding the implementation of scope in
D, Walter? Are there some implementation difficulties that make
it hard to implement?
- - - - - - - -
Unrelated. Among the most important patches currently worked on,
there are two by Kenji on fixing one of the largest holes in
Walter (or someone else with the appropriate permissions), would you please
add a repo to deimos for flac?
I don't know what permissions I'm supposed to have for deimos (I think that I
get informed of pull requests periodically, so I probably have commit access
in at least some cases), but I
http://d.puremagic.com/issues/show_bug.cgi?id=7836
Upon closer inspection, however, it seems that this may have been
deliberate??? Here's the code from rt/typeinfo/ti_double.d:
class TypeInfo_d : TypeInfo
{
// ...
static bool _equals(double f1, double f2)
{
On 7/8/2013 7:06 PM, Jonathan M Davis wrote:
Walter (or someone else with the appropriate permissions), would you please
add a repo to deimos for flac?
https://github.com/D-Programming-Deimos/flac
1 - 100 of 239 matches
Mail list logo