View mode: basic / threaded / horizontal-split · Log in · Help
October 05, 2012
Re: Implicit instantiation of parameterless templates
On Friday, 5 October 2012 at 20:42:06 UTC, Maxim Fomin wrote:
> On Friday, 5 October 2012 at 20:19:26 UTC, Piotr Szturmaj wrote:
>> F i L wrote:
>>> Dmitry Olshansky wrote:
>>>> Hm... If placed at the global scope it looks like a 
>>>> namespace.
>>>
>>> I don't see anything wrong with that. It's just another way 
>>> (somewhat
>>> unique to D) you can categorize your code. Most people 
>>> probably won't
>>> use this sort of thing all over the place, but it actually 
>>> might be
>>> useful for "enforcing" naming classifications:
>>>
>>>    // File system/io.d
>>>
>>>    template Console
>>>    {
>>>        void write( ... )
>>>        void read()
>>>    }
>>
>> final abstract class Console
>> {
>>    static:
>>    void write() { }
>>    void read() { }
>> }
>>
>> Console.write();
>>
>> P.S. Yes, simultaneous final and abstract actually works :)
>
> Thanks to how dmd parses code, many simultaneous things 
> actually work, sometimes it is nonsense 
> http://dpaste.dzfl.pl/04e6bf33

Time to write "D the good parts" or "Effective D" ?
October 05, 2012
Re: Implicit instantiation of parameterless templates
On 10/5/12 5:28 PM, Paulo Pinto wrote:
> Time to write "D the good parts" or "Effective D" ?

"D the good parts" would be much bigger than TDPL :o).

Andrei
October 06, 2012
Re: Implicit instantiation of parameterless templates
On Friday, 5 October 2012 at 21:47:06 UTC, Andrei Alexandrescu 
wrote:
> On 10/5/12 5:28 PM, Paulo Pinto wrote:
>> Time to write "D the good parts" or "Effective D" ?
>
> "D the good parts" would be much bigger than TDPL :o).
>
> Andrei

I forgot the smiley Andrei. :)
Next ›   Last »
1 2
Top | Discussion index | About this forum | D home