<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn">
    <title>gmane.comp.lang.d.learn</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21833"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21832"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21831"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21830"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21829"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21828"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21827"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21826"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21825"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21824"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21823"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21822"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21821"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21820"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21819"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21818"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21817"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21816"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21815"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.d.learn/21814"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21833">
    <title>Re: Multi-library project path issue</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21833</link>
    <description>&lt;pre&gt;Thanks for the quick and helpful reply. I will give it a shot.



On Friday, 25 May 2012 at 06:36:07 UTC, Jacob Carlborg wrote:



&lt;/pre&gt;</description>
    <dc:creator>#coder</dc:creator>
    <dc:date>2012-05-26T02:43:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21832">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21832</link>
    <description>&lt;pre&gt;

Not really. I wanted initialization to be the same either way, but unittests seem optional. 
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-26T02:27:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21831">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21831</link>
    <description>&lt;pre&gt;

None that I can think of. I bet it's just really old code. 
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-26T02:26:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21830">
    <title>Re: Translating C const</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21830</link>
    <description>&lt;pre&gt;
Well, the reason that it's not an issue at all with function parameters where 
it's the pointer which is const is that the const portion is being copied. 
With a struct being passed to a function as an argument, anything which is 
directly const in the struct doesn't have to stay const when passed (it's just 
the indirect stuff which would be - pointers and references - though having a 
reference as a member variable is a bit evil). However, if that same struct 
can be passed around via a pointer, then those member variables would have to 
be const.

I'm not sure that it's possible to generically constify C structs for D 
correctly. If you just use D's const on const member variables, then you won't 
be able to mutate what's pointed to by pointers which were const but pointed 
to mutable data in the C definition. In many cases, that wouldn't be an issue 
at all, but depending on what you needed to do in D, it would be. On the other 
hand, if you just didn't use const at all, then you _could_ mutate what nee&lt;/pre&gt;</description>
    <dc:creator>Jonathan M Davis</dc:creator>
    <dc:date>2012-05-25T23:17:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21829">
    <title>Re: Simplified socket creation and handling</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21829</link>
    <description>&lt;pre&gt;
Sorry for the typo: I do NOT understand it completely.

&lt;/pre&gt;</description>
    <dc:creator>Donald Duvall</dc:creator>
    <dc:date>2012-05-25T20:55:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21828">
    <title>Re: Simplified socket creation and handling</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21828</link>
    <description>&lt;pre&gt;
Would it be possible for someone to write some documentation on 
this socket server and make it windows compatible?

I am just learning D and coming from C# sockets this is much 
different and I understand it completely. I would much appreciate 
any help with understanding sockets in D and any pointers in the 
right direction.

&lt;/pre&gt;</description>
    <dc:creator>Donald Duvall</dc:creator>
    <dc:date>2012-05-25T20:50:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21827">
    <title>Re: Why doesn't this throw?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21827</link>
    <description>&lt;pre&gt;On Fri, 25 May 2012 08:59:47 -0400, Andrej Mitrovic  
&amp;lt;andrej.mitrovich&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


Because remove has a bug.

-Steve

&lt;/pre&gt;</description>
    <dc:creator>Steven Schveighoffer</dc:creator>
    <dc:date>2012-05-25T14:53:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21826">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21826</link>
    <description>&lt;pre&gt;On Thu, 24 May 2012 16:40:46 -0400, Sean Kelly &amp;lt;sean&amp;lt; at &amp;gt;invisibleduck.org&amp;gt;  
wrote:


oh.  That's.... horrible.

Yeah, we should eliminate this ASAP.  Is there any reason it has to be  
done before C's main?

-Steve

&lt;/pre&gt;</description>
    <dc:creator>Steven Schveighoffer</dc:creator>
    <dc:date>2012-05-25T14:31:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21825">
    <title>Why doesn't this throw?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21825</link>
    <description>&lt;pre&gt;import std.algorithm;
import std.stdio;

void main()
{
    int[] a = [1, 2, 3];
    a = a.remove(3);
    writeln(a);
}

writes [1, 2]

If I'd called a.remove with index 2 I would get the above result, but
index 3 is clearly out of bounds, so why'd it remove the last element
instead of throwing?

&lt;/pre&gt;</description>
    <dc:creator>Andrej Mitrovic</dc:creator>
    <dc:date>2012-05-25T12:59:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21824">
    <title>Re: state of web programming</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21824</link>
    <description>&lt;pre&gt;
web-stuff

http://vibed.org

&lt;/pre&gt;</description>
    <dc:creator>Dejan Lekic</dc:creator>
    <dc:date>2012-05-25T11:06:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21823">
    <title>Re: Reading ASCII file with some codes above 127 (exten ascii)</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21823</link>
    <description>&lt;pre&gt;
The only thing which would worry me about this code is the cast(char[]) in  
the final writeln.. I know some parts of phobos verify the char data is  
correct UTF-8 and this line casts latin-1 to char[] which can potentially  
create invalid UTF-8 data.  That said, I had a really quick look at the  
phobos code for File.writeln and I'm not sure whether this function does  
any UTF-8 validation.  I would be happier if the latin-1 was written as a  
stream of bytes with no assumed interpretation, IMO.

R

&lt;/pre&gt;</description>
    <dc:creator>Regan Heath</dc:creator>
    <dc:date>2012-05-25T09:05:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21822">
    <title>Re: Multi-library project path issue</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21822</link>
    <description>&lt;pre&gt;
It depends on what naming scheme you want to have on your modules. I 
think you should go with "Lib1.TestFile1". Actually I would go with 
lower case package names, i.e. "lib1.TestFile1". In that case you need 
to add a flag to DMD to indicate the import search path. This search 
path should point to the parent folder of the root package(s), in this 
case the parent folder of "Lib1", i.e. AppFolder.

AppFolder
   |- main.d
   |- Lib1
      |- TestFile1.d
      |- TestFile2.d
   |- Lib2
      |- TestFile3.d
         |- Lib3
            |- TestFile4.d

$ dmd AppFolder/main.d -I./AppFolder

The module and import declarations of the TestFiles should look like this:

module Lib1.TestFile1;

import Lib1.TestFile2;
import Lib2.TestFile3;
import Lib2.Lib3.TestFile4;

For Mono-D you need to be able to specify the same search path. I have 
no idea how to do that in Mono-D.

&lt;/pre&gt;</description>
    <dc:creator>Jacob Carlborg</dc:creator>
    <dc:date>2012-05-25T06:36:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21821">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21821</link>
    <description>&lt;pre&gt;

Yeah, I've noticed that. Does the unit test really need to run when you 
call rt_init from C?

&lt;/pre&gt;</description>
    <dc:creator>Jacob Carlborg</dc:creator>
    <dc:date>2012-05-25T06:25:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21820">
    <title>Multi-library project path issue</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21820</link>
    <description>&lt;pre&gt;Hi,

I am using the Mono-D for building a project with 3-4 library 
projects and one console project. Although I am using the Mono-D 
but I think this issue is not unique to Mono-D. Please advise me 
with a solution, if I am missing something obvious here.

Issue;

I have two "library" project with something similar to following:

AppFolder  (AppFolder contains the below two folders for 
individual project)

Lib1
  |
  ------ TestFile1.d
  |
  ------ TestFile2.d (import TestFile1;) // TestFile2 is importing 
TestFile1 in same library project.


Lib2  (Lib2 has linker path to "lib1.a" and include path to 
"AppFolder")
|
------ TestFile3.d (import Lib1.TestFile2).


If I compile the Lib1 folder alone then it will work fine but now 
if I compile the Lib2 folder then the error will be in 
"TestFile2.d" of Lib1 project that "TestFile1" is not found. If I 
change the "Import" in TestFile2 to

import Lib1.TestFile1;

Then the compilation of Lib2 starts to work. Now, if I try to 
compile the Lib1 project alone in Mo&lt;/pre&gt;</description>
    <dc:creator>#coder</dc:creator>
    <dc:date>2012-05-25T06:15:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21819">
    <title>Re: null matches typed pointers before void pointers</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21819</link>
    <description>&lt;pre&gt;
http://d.puremagic.com/issues/show_bug.cgi?id=8146

&lt;/pre&gt;</description>
    <dc:creator>bearophile</dc:creator>
    <dc:date>2012-05-24T22:01:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21818">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21818</link>
    <description>&lt;pre&gt;

It's not STI_monitor specifically. STI_anything is a module ctor and STD_anything is a module dtor. Or at least that's my recollection. There are a few places in the DMC runtime that have initializers like this. I think one is somewhere in the floating-point support code. 
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-24T20:40:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21817">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21817</link>
    <description>&lt;pre&gt;On Thu, 24 May 2012 15:44:28 -0400, Sean Kelly &amp;lt;sean&amp;lt; at &amp;gt;invisibleduck.org&amp;gt;  
wrote:


Yeah, I do too.  I did a full text search for STI_monitor and found  
nothing.

That's why I'm confused...

-Steve

&lt;/pre&gt;</description>
    <dc:creator>Steven Schveighoffer</dc:creator>
    <dc:date>2012-05-24T20:27:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21816">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21816</link>
    <description>&lt;pre&gt;

There's a difference in how unittest execution is handled.  This could probably be sorted out though.
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-24T19:49:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21815">
    <title>Re: std.concurrency.send</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21815</link>
    <description>&lt;pre&gt;

Maybe use register().



I'll admit that send() has only spotty support for shared.  This should be fixed.
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-24T19:38:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21814">
    <title>Re: druntime investigation troubles</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21814</link>
    <description>&lt;pre&gt;

This code is before my time, but I believe that DMC implicitly treats STI functions as module ctors, and DMD inherits this behavior because it shares a C runtime with DMC.  It's been a while since I've looked at all of this, but the full C runtime source is shipped with DMC--I have a copy.
&lt;/pre&gt;</description>
    <dc:creator>Sean Kelly</dc:creator>
    <dc:date>2012-05-24T19:44:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.d.learn/21813">
    <title>Re: Reading ASCII file with some codes above 127 (exten ascii)</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.d.learn/21813</link>
    <description>&lt;pre&gt;
  My solution may have a flaw in it's lookup table; namely if I 
got one of the codes wrong. I used regex and a site to reference 
them all so I Hope it's right. I can't remember but I think it 
was from http://www.alanwood.net/demos/ansi.html

  The main reason I wrote it was there was no good explanations in 
the documentation of anywhere of how to use std.encoding and 
transcode. This meant I was stuck and needed some simple 
solution. I'm not sure if my solution is going to be faster, but 
it does do minimal object allocation/resizing/abstraction, and 
tries not to make a new string if it doesn't have to.

  Who knows? Perhaps it will be added to phobos once the table is 
verified.

&lt;/pre&gt;</description>
    <dc:creator>era scarecrow</dc:creator>
    <dc:date>2012-05-24T19:47:05</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.d.learn">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.d.learn</link>
  </textinput>
</rdf:RDF>

