Re: [OT] Good or best Linux distro?

2014-01-28 Thread Mariusz Gliwiński
Chris @ 2014-01-28 15:06: However, I don't think that you can easily compare the world of software development with other areas. Possibly suing is not that common, but i find music and software development extremely similar in terms of creation. Even if you're not that much into music, you

Re: DMD under 64-bit Windows 7 HOWTO

2012-12-18 Thread Mariusz Gliwiński
On Tuesday, 18 December 2012 at 14:47:55 UTC, Walter Bright wrote: On 12/18/2012 5:32 AM, Gor Gyolchanyan wrote: Good day, fellow D developers. After spending much time figuring out how to make DMD work fluently under 64-bit Windows 7 I've realized that this is not a trivial task and lots of

Re: Officially moving to MediaWiki?

2012-12-09 Thread Mariusz Gliwiński
W dniu 2012-12-09 07:13, Maxim Fomin pisze: I agree that moving from prowiki to mediawiki is a good idea, but new site is just almost empty (http://dwiki.kimsufi.thecybershadow.net/?title=Special:RecentChangesdays=30from=limit=500 see also

Re: Officially moving to MediaWiki?

2012-12-09 Thread Mariusz Gliwiński
W dniu 2012-12-09 14:21, Maxim Fomin pisze: Are you actually asking to make Vladimir's wikisite accessible at wiki.dlang.org (or moving its database to mediawiki instance located at wiki.dlang.org)? Probably this is a good idea even assuming that the site is just almost empty - it can be

Re: D license

2012-08-17 Thread Mariusz Gliwiński
W dniu 2012-08-17 23:12, ref2401 pisze: can i use D2 for commercial project? Of course you can write your commercial and private project in D2.

[OT] functional programming resources ?

2012-04-27 Thread Mariusz Gliwiński
style overtime, but i'm afraid to rely on compiler optimizations so highly. Anyways, i don't feel like i could write big part of my code pure functional yet, so i'd like to learn about it at least a bit more. Thanks, Mariusz Gliwiński

Re: Message-Passing

2012-01-22 Thread Mariusz Gliwiński
On Thursday, 19 January 2012 at 22:36:17 UTC, Sean Kelly wrote: Thanks :-) If you have ideas on how it could be improved, please let me know. I don't know whether it's good or not, but in my system based on std.concurrency: * i had to add in-thread messaging in case when there will be more

Re: mutable compile-time data proposal

2011-12-28 Thread Mariusz Gliwiński
Andrei Alexandrescu wrote: I don't think such a feature has a huge potential use. I honestly think it's a meh feature. It's a feature for defining elaborate literals, and for that we have the shock and awe of mixin and CTFE. Actually, i already needed it few times in my D project (and still

Re: mutable compile-time data proposal

2011-12-28 Thread Mariusz Gliwiński
David Nadlinger wrote: Could you show a few examples? I'm just curious, because I wrote a sizable chunk of D code, often incorporating some form of compile time magic, and never felt the need for it. I'd rather avoid that because code i'm writing isn't a state of art, so you might neglect my

Note about variant

2011-10-09 Thread Mariusz Gliwiński
] garbage; this(ubyte size) {} this(S n) {} } void main() { send(thisTid, Variant(S(1))); } /code runtime core.exception.AssertError@/usr/include/d/std/variant.d(279): target must be non-null runtime Regards, Mariusz Gliwiński

Re: Note about variant

2011-10-09 Thread Mariusz Gliwiński
Dnia niedziela, 9 października 2011 00:13:29 Jonathan M Davis pisze: Part of your problem may be that D doesn't use copy constructors. Rather, it has postblit constructors: Yes, i know about naming difference and behavioral difference. It's not a problem for me anymore, this post is for people

polymorphic call from variant?

2011-10-07 Thread Mariusz Gliwiński
MsgA: case MsgB: case MsgC: } inside my Listener class? In other words, can i call MANY - SINGLE - MANY via dynamic pointer(vtable) rather than static branching? Thanks, Mariusz Gliwiński

Re: method returning child, doesn't overrides declared method returning parent

2011-08-30 Thread Mariusz Gliwiński
Jonathan M Davis wrote: On Tuesday, August 30, 2011 08:57:53 Mariusz Gliwiński wrote: [...] code interface Interface { void method(Interface); } class Class : Interface { void method(Class) {} } void main() {} /code This particular example is not a bug. [...] You're absolutely

method returning child, doesn't overrides declared method returning parent

2011-08-29 Thread Mariusz Gliwiński
code interface Interface { Interface method(); } class Class : Interface { override Class method() {} } /code DMD complains it isn't overriding. How should it be according to specification, and how about making it legal?

Re: method returning child, doesn't overrides declared method returning parent

2011-08-29 Thread Mariusz Gliwiński
object, that implements interface a child object, i'm sorry for that. Thanks, Mariusz Gliwiński

Re: method returning child, doesn't overrides declared method returning parent

2011-08-29 Thread Mariusz Gliwiński
Jonathan M Davis wrote: This seems to compile just fine: interface Interface { Interface method(); } class Class : Interface { Class method() {return new Class;} } The problem is the override keyword. _No_ overriding is going on. _That's_ why it's complaining. I'm sorry - i

Re: implicit casting from primitive type

2011-08-29 Thread Mariusz Gliwiński
Ali Çehreli wrote: To solve it for this specific case, you can overload attribute() to take int[]: I know, but i don't really want to. Too many overrides or templates, but i'll consider it if wont find any better solution. Thanks, Mariusz Gliwiński

bug covering other bug

2011-08-26 Thread Mariusz Gliwiński
did in C++ much faster (because of bugs and libs, not a language) slowly stops being recompensated by elegance of code i can write with D and highly skilled community as you are. What's your opinion? Sincerely, Mariusz Gliwiński

Re: bug covering other bug

2011-08-26 Thread Mariusz Gliwiński
bearophile wrote: Mariusz G.: So, on my Linux x64 dmd 2.53 2.54, while hunting another bug (i already highly doubt it's my) - i've found this one: I can't reproduce the problem on 2.055head on 32 bit Windows. DMD 64 bit is relatively recent, it contains several bugs still. More -

Unannotated abstract classes

2011-08-17 Thread Mariusz Gliwiński
both languages are designed like that, but it would be great to know it. Sincerely, Mariusz Gliwiński

Re: Unannotated abstract classes

2011-08-17 Thread Mariusz Gliwiński
should probably be opened about that if it doesn't already exist. I'm happy now. you understand me properly. My complaint is about fact, that Child isn't required to be marked with abstract. Thanks, Mariusz Gliwiński

Centralizable configured compile-time class instantiation

2011-07-31 Thread Mariusz Gliwiński
* implementations How to make in my D library possibility of configurable instantiation (lookup at compile time) by having only interface at client side? Thanks, Mariusz Gliwiński

Is this bug or not?

2011-05-06 Thread Mariusz Gliwiński
Is this bug, or is it as supposed to be? I'm not sure... code interface TmpI(T) { void func(T); } class TmpC {} class TmpC2 : TmpC {} class Tmp : TmpI!TmpC2 { void func(TmpI!TmpC) {}; } void main(string[] args) { auto inst = new Tmp; inst.func(new Tmp); } /code Error: function

Difference between stack-allocated class and struct

2011-05-02 Thread Mariusz Gliwiński
What are the differences between class instantiated by scope and struct itself? Two, that comes to my mind are: - vtable existance (yep, struct with inheritation - that's what i like) - lol, i just forgot while writing this e-mail :) Sincerely, Mariusz Gliwiński

Re: Difference between stack-allocated class and struct

2011-05-02 Thread Mariusz Gliwiński
). Unfortunately, the worse case is about methods, which have to be manually forwarded to contained struct. So, does someone sees any nice solution for method forwarding as described? Should i make use of some mixin's? Thanks, Mariusz Gliwiński

Public variables inside interfaces

2011-04-30 Thread Mariusz Gliwiński
size(); // */ class A : Sizeable { public int size = 0; // Error: Does not implements int size() } class B : Sizeable { public int size() { return 0; } } /code Is it possible to make it work? Best regards, Mariusz Gliwiński

Is int faster than byte/short?

2011-04-30 Thread Mariusz Gliwiński
and profiling, but i suppose people already published general rules that i could apply for my programming. Thanks, Mariusz Gliwiński

Deterministic resource freeing - delete deprecation (again)

2011-04-27 Thread Mariusz Gliwiński
caricaturizing my current worries about the language, and if I'm missing something - please hint me what. Sincerely, Mariusz Gliwiński

How would You make abstract HANDLE?

2011-01-19 Thread Mariusz Gliwiński
or something else? Thanks, Mariusz Gliwiński

Re: How would You make abstract HANDLE?

2011-01-19 Thread Mariusz Gliwiński
_handle defined, even if it's defined few lines above. Am i doing something wrong? Thanks, Mariusz Gliwiński

Re: D vs C++

2010-12-27 Thread Mariusz Gliwiński
downloadable again, please :) Sincerely, Mariusz Gliwiński signature.asc Description: This is a digitally signed message part.

Re: TDPL dictionary example - error

2010-12-24 Thread Mariusz Gliwiński
Friday 24 December 2010 @ 18:36:08 Caligo: I forgot to ask, what version of DMD are you using? 2.049 signature.asc Description: This is a digitally signed message part.

assocArray.remove() gives strange error

2010-12-23 Thread Mariusz Gliwiński
): Assertion `pr != PREC_zero' failed./code while the book states it should return bool, which typeof() supports Digital Mars D Compiler v2.049 Copyright (c) 1999-2010 by Digital Mars written by Walter Bright Documentation: http://www.digitalmars.com/d/2.0/index.html Sincerely, Mariusz Gliwiński

Do we already have full compile time / runtime separation?

2010-12-23 Thread Mariusz Gliwiński
about undefined module initialization? Or maybe there is any way to overcome this problems, since I'm still new @ D language. Ps. How to make associative array of dynamic arrays? codeMsgHandler[hash_t][] _handlers = new MsgHandler[hash_t][];/code wont work. Thanks for help, Mariusz Gliwiński

Re: TDPL dictionary example - error

2010-12-23 Thread Mariusz Gliwiński
, it works, but it defeats the purpose. So what's wrong with the code? It works for DMD, I think it's a GDC bug (i'm new in D too, so i might be wrong). Keep in mind that GDC implements only D 1.0 and book has D 2.0 code. Sincerely, Mariusz Gliwiński signature.asc Description: This is a digitally

Re: What's the problem in opensourcing htod?

2010-12-22 Thread Mariusz Gliwiński
it right now, and will be needing to develop `const` supporting script I would advice anyone else to check SWIG for D, because it's worth it. Cheers, Mariusz Gliwiński signature.asc Description: This is a digitally signed message part.

Re: What's the problem in opensourcing htod?

2010-12-21 Thread Mariusz Gliwiński
Dnia wtorek 21 grudzień 2010 o 23:08:34 Jonathan M Davis napisał(a): On Tuesday, December 21, 2010 13:58:02 Mariusz Gliwiński wrote: Hello, Why don't You make htod opensource? I don't think it has commercial potential, or I'm wrong? I'm asking, because it's a shame that people who wants

Re: What's the problem in opensourcing htod?

2010-12-21 Thread Mariusz Gliwiński
be preferred, but anything appreciated) Cheers, Mariusz Gliwiński signature.asc Description: This is a digitally signed message part.

Function with default parameters

2010-09-17 Thread Mariusz Gliwiński
anywhere. This code didn't worked, could you refresh my memory? Thanks, Mariusz Gliwiński

Re: Function with default parameters

2010-09-17 Thread Mariusz Gliwiński
On 2010-09-18 00:40, Steven Schveighoffer wrote: On Fri, 17 Sep 2010 18:37:09 -0400, Mariusz Gliwiński alienballa...@gmail.com wrote: Basically picking just right parameter while other have default. But now I can't find syntax anywhere. This code didn't worked, could you refresh my memory? D

Re: string to char*

2010-09-11 Thread Mariusz Gliwiński
On 2010-09-11 15:13, Simen kjaeraas wrote: Why does the function expect a char*? If it is an external C function, and it might change the passed values, you should make a duplicate mutable string, or use char[] in lieu of string. If it is an external C function that will *not* change the passed