On 08/09/2013 12:41 PM, captaindet wrote:
> On 2013-08-09 11:36, Ali Çehreli wrote:
>> as I am in the process of revising and translating a Tuples chapter.
> as a matter of fact, i am checking your website regularly, eagerly
> awaiting the translations of the tuples chapter. and the __traits and
On Friday, 9 August 2013 at 06:16:20 UTC, captaindet wrote:
a) if we are not allowed to put typetuples in enums, why is it
not an error?
[...]
enum er = TypeTuple!("one", "two", "three");
FWIW, it's an error in the current git head dmd: "Error: cannot
cast "one" to (string, string, string) a
On 2013-08-09 11:36, Ali Çehreli wrote:
as I am in the process of revising and translating a Tuples chapter.
thanks for the reply, Ali.
as a matter of fact, i am checking your website regularly, eagerly awaiting the
translations of the tuples chapter. and the __traits and the template chapter
The Very Sleepy profiler works ok (if you run the apps through
cv2pdb to get the debug symbols in the right format at least)
:)
You are perfectly right !
On Friday, 9 August 2013 at 16:39:41 UTC, Alexandr Druzhinin
wrote:
-profile switch doesn't work for me (nothing happens), so I'm
curious how to profile?
I had the same problem on Linux where -profile didn't seem to
produce anything. I had a program which ran an infinite loop
running as a dae
On Friday, August 09, 2013 01:16:12 captaindet wrote:
> module demo;
> import std.stdio, std.typetuple, std.typecons;
>
> enum ok = tuple("one", "two", "three");
> pragma(msg, ok, ", ", ok[0]);
> // Tuple("one", "two", "three"), one
> enum er = TypeTuple!("one", "two", "three");
> // pragma(msg, e
On Friday, August 09, 2013 10:41:05 H. S. Teoh wrote:
> On Fri, Aug 09, 2013 at 09:36:16AM -0700, Ali Çehreli wrote:
> > On 08/08/2013 11:16 PM, captaindet wrote:> hi,
> >
> > > i am still struggling getting to grips with tuples, especially
> > > typetuples.
> >
> > Yes, especially TypeTuples. :)
On Friday, 9 August 2013 at 07:31:09 UTC, Larry wrote:
So many thanks !
Yes it is not very polished yet.
But now I see how I can manage it, I will follow your lead and
try things. :)
Thanks again,
Larry
Great! Remember if you have any issues or find any bugs raise an
issue on github. I'v
09-Aug-2013 20:39, Alexandr Druzhinin пишет:
-profile switch doesn't work for me (nothing happens), so I'm curious
how to profile?
My take is to compile with -g and use say AMD CodeAnalyst (or Intel's
analog). Works quite well even though all symbols are mangled.
With -profile the app usuall
On Fri, Aug 09, 2013 at 11:39:41PM +0700, Alexandr Druzhinin wrote:
> -profile switch doesn't work for me (nothing happens), so I'm
> curious how to profile?
You've to run your program first. It will create a bunch of extra files
in your current working directory that contains the profile results.
On Fri, Aug 09, 2013 at 09:36:16AM -0700, Ali Çehreli wrote:
> On 08/08/2013 11:16 PM, captaindet wrote:> hi,
>
> > i am still struggling getting to grips with tuples, especially
> > typetuples.
>
> Yes, especially TypeTuples. :)
>
> > typetuples seem to live in a shadow world
>
> My feelings!
On Friday, 9 August 2013 at 15:28:10 UTC, Manfred Nowak wrote:
michaelc37 wrote:
WTF -> -1 is greater than 7
From the docs:
It is an error to have one operand be signed and the other
unsigned for a
<, <=, > or >= expression.
-manfred
Interesting. I didn't know it was documented as b
http://d.puremagic.com/issues/show_bug.cgi?id=259
https://github.com/D-Programming-Language/dmd/pull/1913
Looks like there has a pending fix for 4 months.
-profile switch doesn't work for me (nothing happens), so I'm curious
how to profile?
On 08/08/2013 11:16 PM, captaindet wrote:> hi,
> i am still struggling getting to grips with tuples, especially
> typetuples.
Yes, especially TypeTuples. :)
> typetuples seem to live in a shadow world
My feelings! :)
Coincidentally, I am struggling with the same question at the moment as
I a
On 8/9/13, Manfred Nowak wrote:
> michaelc37 wrote:
>> WTF -> -1 is greater than 7
>
> From the docs:
>
> It is an error to have one operand be signed and the other unsigned for a
> <, <=, > or >= expression.
>
> -manfred
>
Chances are generic code would break, so maybe that part of the docs
On Thu, Aug 08, 2013 at 10:00:08PM -0400, Jonathan M Davis wrote:
> On Thursday, August 08, 2013 16:05:24 H. S. Teoh wrote:
[...]
> > But honestly, I can totally understand why many people find D docs
> > very frustrating. In fact, I found the online docs so unhelpful when
> > I first found D, that
On Friday, 9 August 2013 at 15:18:47 UTC, Dicebot wrote:
On Friday, 9 August 2013 at 15:11:42 UTC, michaelc37 wrote:
forgive me if i'm doing something stupid, i'm extremely tired
and trying to avoid drinking coffee.
void main()
{
int[] arr = [0, 1, 2, 3, 4, 5, 6];
//check 1
On 08/09/2013 03:17 AM, JR wrote:
> On Thursday, 8 August 2013 at 21:16:36 UTC, David Nadlinger wrote:
>> when taking a pointer to stack data
>> (which is un-@safe), you have to take care not to escape it from the
>> scope.
>
> Can I manually store it on the heap and let the garbage collector ke
michaelc37 wrote:
> WTF -> -1 is greater than 7
>From the docs:
It is an error to have one operand be signed and the other unsigned for a
<, <=, > or >= expression.
-manfred
On Friday, 9 August 2013 at 15:11:42 UTC, michaelc37 wrote:
forgive me if i'm doing something stupid, i'm extremely tired
and trying to avoid drinking coffee.
void main()
{
int[] arr = [0, 1, 2, 3, 4, 5, 6];
//check 1
if (-1 > arr.length)
writefln("WTF -
On Friday, 9 August 2013 at 15:11:42 UTC, michaelc37 wrote:
forgive me if i'm doing something stupid, i'm extremely tired
and trying to avoid drinking coffee.
void main()
{
int[] arr = [0, 1, 2, 3, 4, 5, 6];
//check 1
if (-1 > arr.length)
writefln("WTF -
forgive me if i'm doing something stupid, i'm extremely tired and
trying to avoid drinking coffee.
void main()
{
int[] arr = [0, 1, 2, 3, 4, 5, 6];
//check 1
if (-1 > arr.length)
writefln("WTF -> %d is greater than %d ", -1, arr.length);
else
On Fri, 09 Aug 2013 13:21:19 +, martin mauchauffée wrote:
> I would like to learn to use the function thread_scanAllType() from the
> core.thread module. Can anyone give me an example or a link to one,
> please?
Hm...
Maybe, I need ThreadGroup...
If I used Tango, I would use ThreadPool.
Hello,
I would like to learn to use the function thread_scanAllType() from the
core.thread module. Can anyone give me an example or a link to one,
please?
Have a nice day.
On Wednesday, 7 August 2013 at 22:06:16 UTC, Ali Çehreli wrote:
On 08/07/2013 08:12 AM, Borislav Kosharov wrote:
I want to send a pause command to the system like in C++:
system("pause");
Or like in Ruby: `pause`
Something like that. I searched the library, but I haven't
found it. I
tough tha
On Friday, 9 August 2013 at 10:26:05 UTC, David wrote:
Is there an easier way? How to learn about it? A detailed
instruction
(at least as detailed as the steps above) at the top of the
manual page
(http://dlang.org/phobos/std_net_curl.html) would have been
nice...
After all, it's a third part
> Is there an easier way? How to learn about it? A detailed instruction
> (at least as detailed as the steps above) at the top of the manual page
> (http://dlang.org/phobos/std_net_curl.html) would have been nice...
> After all, it's a third party library not fully supplied with the compiler.
Th
On Thursday, 8 August 2013 at 21:16:36 UTC, David Nadlinger wrote:
On Thursday, 8 August 2013 at 20:08:11 UTC, JR wrote:
I put together http://dpaste.dzfl.pl/d7322971 earlier to
demonstrate some of these errors, though I didn't mention the
raciness of passing pointers there. To test that race I
Hi!
To use std.net.curl successfully with DMD 2.063.2 on Windows, I
had to follow the steps below:
-
1. Download libcurl from here:
http://curl.haxx.se/download.html#Win32.
2. Extract libcurl.dll.
3. Download implib tool from here:
http://ftp.digitalmars.com/bup.zip, as OPTLINK's /IM
On Thursday, 8 August 2013 at 21:11:06 UTC, Ali Çehreli wrote:
An immutable on the receiving side is a request to the caller
that the data must be immutable. If you are casting data with
mutable indirection to immutable, anything can happen.
immutable data is by nature not synchronized because
So many thanks !
Yes it is not very polished yet.
But now I see how I can manage it, I will follow your lead and
try things. :)
Thanks again,
Larry
33 matches
Mail list logo