Re: A real Forum for D

2011-11-28 Thread Vladimir Panteleev
On Tue, 29 Nov 2011 09:06:06 +0200, Unknown W. Brackets wrote: Walter, Well, having authored web forum software, I suppose I'll make a few remarks here. I seem to have gotten hit by a stray "forum software writers (that's me) just don't get it." 1. Well, I get threads, I really do. I

Re: Website message overhaul, pass 2

2011-11-28 Thread Jacob Carlborg
On 2011-11-29 08:40, Caligo wrote: BTW, something is wrong with the class section of the language reference: http://d-programming-language.org/new/class.html It's been like that for months. There's a pull request available but it hasn't been merged. -- /Jacob Carlborg

Re: wxC & wxD

2011-11-28 Thread Jacob Carlborg
On 2011-11-29 07:37, Gour wrote: On Mon, 28 Nov 2011 22:55:10 +0100 Anders F Björklund wrote: I'm no fan of either, and prefer plain import modules and libs over function pointers and complex tools. Well, my belief is that tools can help when maintaining bindings, iow. when one has to keep t

Re: wxC & wxD

2011-11-28 Thread Jacob Carlborg
On 2011-11-29 07:37, Gour wrote: On Mon, 28 Nov 2011 22:55:10 +0100 Anders F Björklund wrote: I'm no fan of either, and prefer plain import modules and libs over function pointers and complex tools. Well, my belief is that tools can help when maintaining bindings, iow. when one has to keep t

Re: Website message overhaul, pass 2

2011-11-28 Thread Caligo
BTW, something is wrong with the class section of the language reference: http://d-programming-language.org/new/class.html It's been like that for months.

Re: SQL/database server capabilities NO ODBC please

2011-11-28 Thread Steve Teale
On Sat, 26 Nov 2011 15:31:33 -0800, bls wrote: > Picking up ODBC in order to figure out how an generic database Interface > may look like is a very bad idea. > > Creating an ODBC Interface at all is pretty useless. NOBODY is using > ODBC at all. Just a point of clarification. It is not my intenti

Re: SQL/database server capabilities NO ODBC please

2011-11-28 Thread Jacob Carlborg
On 2011-11-29 05:21, Steve Teale wrote: On Mon, 28 Nov 2011 19:48:37 +0100, Jacob Carlborg wrote: On 2011-11-28 15:34, Steve Teale wrote: On Sun, 27 Nov 2011 12:31:32 +0100, Jacob Carlborg wrote: On 2011-11-27 07:13, Steve Teale wrote: You may detest ODBC, but it is very soon going to be th

Re: Documentation 'quick index'

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 23:22, Mike Wey wrote: On 11/28/2011 09:38 PM, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, etc? I'm thinking of somethi

Re: A real Forum for D

2011-11-28 Thread Marco Leise
Am 29.11.2011, 08:08 Uhr, schrieb Unknown W. Brackets : In contrast, I haven't a clue how to use NNTP on my iPhone. Go figure. The first iPhone didn't even support copy&paste iirc. On the other hand, this app may work for you: http://www.caledonia.net/blog/?p=173

Re: Documentation 'quick index'

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 22:18, Steven Schveighoffer wrote: On Mon, 28 Nov 2011 15:38:49 -0500, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, et

Re: Documentation 'quick index'

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 21:38, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, etc? I'm thinking of something like this: http://msdn.microsoft.com/e

Re: Documentation 'quick index'

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 21:38, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html That starts to look like CandyDoc. -- /Jacob Carlborg

Re: A real Forum for D

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 20:43, Walter Bright wrote: On 11/28/2011 5:33 AM, Jacob Carlborg wrote: I know that most of the forums look like this. But what says that they have to? I'm just trying to say that a forum doesn't have to look like these examples. You also complained how the forum sites doesn't wo

Re: A real Forum for D

2011-11-28 Thread Unknown W. Brackets
That's just designers who don't get it. They're starting to nowadays. I remember the WAP, I-mode, and etc. interfaces in SMF worked just fine on small screens. Nowadays there are specialized iPhone interfaces. And of course skins that scale fine. In contrast, I haven't a clue how to use NNT

Re: A real Forum for D

2011-11-28 Thread Unknown W. Brackets
Walter, Well, having authored web forum software, I suppose I'll make a few remarks here. I seem to have gotten hit by a stray "forum software writers (that's me) just don't get it." 1. Well, I get threads, I really do. I understand their usefulness, and how sometimes it's beneficial to co

Re: A real Forum for D

2011-11-28 Thread Marco Leise
Am 29.11.2011, 06:51 Uhr, schrieb Mike Parker : Consider this. I've been using web-based mail for years, so had no mail/newsgroup client installed. Why would I want to install one just for one little project? With a forum, I don't have to install anything. I've been using them for years, am

Re: wxC & wxD

2011-11-28 Thread Anders F Björklund
Gerrit Wichert wrote: So, is wxD going to continue like now, or do you envision some change how to proceed for wx-2.9/3.=? I don't plan to do anything with it, I put it up on github so that it could be forked and maintained if there are any bugfixes etc needed... So if i understand you righ

Re: wxC & wxD

2011-11-28 Thread Gour
On Tue, 29 Nov 2011 00:53:20 +0100 Andrej Mitrovic wrote: > Honestly I can't even get a simple SWIG project working (the demo from > klickverbot's announcement on his blog). Apparently there's some > const-related issues. Hmm...have you reported the issue to klickverbot? > Building the examples

Re: wxC & wxD

2011-11-28 Thread Gour
On Mon, 28 Nov 2011 22:55:10 +0100 Anders F Björklund wrote: > I'm no fan of either, and prefer plain import modules and libs over > function pointers and complex tools. Well, my belief is that tools can help when maintaining bindings, iow. when one has to keep the API up-to-date. Of course, m

Re: A real Forum for D

2011-11-28 Thread Mike Parker
On 11/29/2011 8:36 AM, Johannes Totz wrote: PHP forum? Noo!1 If D had a web-based forum only I would not bother reading it or ever coming back to it. I would not have bothered trying to learn any D. I like how these "ancient" newsgroups sort and organise individual messages.

Re: SQL/database server capabilities NO ODBC please

2011-11-28 Thread Steve Teale
On Mon, 28 Nov 2011 19:48:37 +0100, Jacob Carlborg wrote: > On 2011-11-28 15:34, Steve Teale wrote: >> On Sun, 27 Nov 2011 12:31:32 +0100, Jacob Carlborg wrote: >> >>> On 2011-11-27 07:13, Steve Teale wrote: You may detest ODBC, but it is very soon going to be the only way to communicate

Re: Compile-time Interfaces

2011-11-28 Thread Jesse Phillips
On Sun, 27 Nov 2011 12:54:48 +0100, Timon Gehr wrote: > That is an overly restrictive interface because the element type is > fixed. > > The interface should be usable like this: > void foo(R : Range)(R input) { /* ... * / } void foo(T, R : Range!T)(R input) {} // ?

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-28 Thread Jesse Phillips
On Thu, 24 Nov 2011 12:18:50 +, Regan Heath wrote: > The source for Minecraft (written primarily in > Java) was going to be released Hasn't been yet, but it wasn't going to be released as OSS and only intended for modding. So I don't know what the licensing rules would entail, but there is

Re: boost crowd.

2011-11-28 Thread Marco Leise
Am 28.11.2011, 14:42 Uhr, schrieb Maxim Fomin : 2011/11/28 Marco Leise : Am 28.11.2011, 11:02 Uhr, schrieb Jude <10equa...@gmail.com>: I tried to write a lib and a project, which used that lib separately, but came to conclusion that the best choice it to pull lib code to project one. And it i

Re: boost crowd.

2011-11-28 Thread Jude
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/28/2011 12:37 PM, Kagamin wrote: > so Wrote: > >> http://cpp-next.com/archive/2011/11/having-it-all-pythy-syntax/ > > o.O > > overload a lambda? And now I see what all the hype is about with D's template system. Good lord. I've never rea

Re: wxC & wxD

2011-11-28 Thread Andrej Mitrovic
Honestly I can't even get a simple SWIG project working (the demo from klickverbot's announcement on his blog). Apparently there's some const-related issues. Building the examples that come with swig windows binary doesn't work, tried it via mingw32-make and via MSYS. Apparently there's a missing

Re: Concurrency.

2011-11-28 Thread Brad Roberts
On Mon, 28 Nov 2011, Debdatta wrote: > >>1. Your variables are thread local. This guarantees some nice > >>properties, like code that was intended to run in a single-threaded > >>environment when it was written will behave nicely in a multi-threaded > >>environment too, because every thread gets a

Re: A real Forum for D

2011-11-28 Thread Johannes Totz
On 27/11/2011 17:41, alex wrote: Hi folks, I just wondered why there still is this uncomfortable and obviously outdated newsgroup software in use. Perhaps it'd be more contemporary to have a 'real' browser-based forum to which everyone can register and post D-related questions&answers. So, my

Re: A real Forum for D

2011-11-28 Thread Timon Gehr
On 11/28/2011 09:27 PM, Kagamin wrote: Walter Bright Wrote: On 11/27/2011 11:55 PM, Jacob Carlborg wrote: On 2011-11-27 23:30, Walter Bright wrote: Those are all desirable properties. But the forum software I've seen throws out what's good about NNTP news forums: 1. Threaded view 2. Being ab

Re: Documentation 'quick index'

2011-11-28 Thread Jonathan M Davis
On Monday, November 28, 2011 22:17:02 Piotr Szturmaj wrote: > Jonathan M Davis wrote: > > On Monday, November 28, 2011 22:45:17 Vladimir Panteleev wrote: > >> On Mon, 28 Nov 2011 22:38:49 +0200, Piotr > >> Szturmaj > >> > >> wrote: > >>> Hi, > >>> > >>> I'm trying to make ddoc index more readable

Re: wxC & wxD

2011-11-28 Thread Gerrit Wichert
So, is wxD going to continue like now, or do you envision some change how to proceed for wx-2.9/3.=? I don't plan to do anything with it, I put it up on github so that it could be forked and maintained if there are any bugfixes etc needed... So if i understand you right, the way to keep wxD a

Re: Compile-time Interfaces

2011-11-28 Thread Andrei Alexandrescu
On 11/28/11 2:39 AM, Marco Leise wrote: Sounds familiar :D http://www.digitalmars.com/d/archives/digitalmars/D/static_interface_for_structs_146478.html Not to mention http://lists.puremagic.com/pipermail/digitalmars-d/2009-April/053098.html. Andrei

Re: Documentation 'quick index'

2011-11-28 Thread Mike Wey
On 11/28/2011 09:38 PM, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, etc? I'm thinking of something like this: http://msdn.microsoft.co

Re: wxC & wxD

2011-11-28 Thread Anders F Björklund
Gour wrote: Just that I won't have much time to actually maintain it, myself. I'm also not capable to lead such project and would have to take that into consideration when deciding which GUI toolkit to use with D. In any case, for now, I plan to learn more D, master some CMake and start playin

Re: boost crowd.

2011-11-28 Thread Kagamin
bearophile Wrote: > And this is positive because? You say it as if it's negative.

Re: boost crowd.

2011-11-28 Thread bearophile
Walter: > On 11/28/2011 4:00 AM, Alexey Veselovsky wrote: > > Compiler doesn't know anything about "specification" files. So, he > > did't check specification&implementation conformance. > > Yes, that's correct. And this is positive because? See also Timon answer: http://www.digitalmars.com/web

Re: A real Forum for D

2011-11-28 Thread Kagamin
so Wrote: > As i was thinking it can't get any worse, you proved me wrong. For linear chronological view it's a natural thing. Also: 1. Messy software screws your threads for real. In a forum a post ends up right where it belongs to: messy clients are not a problem for chronological order. 2. "

Re: is D ncurses-only language?

2011-11-28 Thread Mike Wey
On 11/28/2011 05:08 PM, Gour wrote: On Wed, 23 Nov 2011 22:58:00 +0100 Mike Wey wrote: Yes, I'll probably update GtkD to the latest 2.x release before looking at GTK+ 3. Have you considered using SWIG to provide GtkD bindings? I'll have to check it out, currently updating the lookup files

Re: Documentation 'quick index'

2011-11-28 Thread Steven Schveighoffer
On Mon, 28 Nov 2011 15:38:49 -0500, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, etc? I'm thinking of something like this: http://m

Re: Documentation 'quick index'

2011-11-28 Thread Piotr Szturmaj
Jonathan M Davis wrote: On Monday, November 28, 2011 22:45:17 Vladimir Panteleev wrote: On Mon, 28 Nov 2011 22:38:49 +0200, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html I think that for

Re: A real Forum for D

2011-11-28 Thread Kagamin
so Wrote: > Except it has noting remotely resembles a novel, where the author plots to > a final common goal, > which happens to be written/thought long before the actual writing. There's no visible difference if the novel runs for decades. > > Chronological order also helps to understand peop

Re: Documentation 'quick index'

2011-11-28 Thread Jonathan M Davis
On Monday, November 28, 2011 22:45:17 Vladimir Panteleev wrote: > On Mon, 28 Nov 2011 22:38:49 +0200, Piotr Szturmaj > > wrote: > > Hi, > > > > I'm trying to make ddoc index more readable. Here are some early > > results: > > > > http://bot.neostrada.pl/dpl.org/std.datetime.html > > I think th

Re: A real Forum for D

2011-11-28 Thread so
On Mon, 28 Nov 2011 22:44:51 +0200, Kagamin wrote: Some forums even have plugins that merge consecutive posts from the same author. As i was thinking it can't get any worse, you proved me wrong. In Soviet Russia... errm... I mean with linear chronological view you do. Think of it as a nov

Re: Documentation 'quick index'

2011-11-28 Thread Piotr Szturmaj
Vladimir Panteleev wrote: On Mon, 28 Nov 2011 22:38:49 +0200, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html I think that for something like this to have full benefit, DDoc would need to

Re: Documentation 'quick index'

2011-11-28 Thread Vladimir Panteleev
On Mon, 28 Nov 2011 22:38:49 +0200, Piotr Szturmaj wrote: Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html I think that for something like this to have full benefit, DDoc would need to be fixed so that genera

Re: A real Forum for D

2011-11-28 Thread Kagamin
Walter Bright Wrote: > On 11/27/2011 5:40 PM, Jude wrote: > > //quote cause I'm lazy > > Those are all desirable properties. But the forum software I've seen > > throws out what's good about NNTP news forums: > > > > 1. Threaded view > > 2. Being able to mark messages as "read" > > 3. Being able t

Documentation 'quick index'

2011-11-28 Thread Piotr Szturmaj
Hi, I'm trying to make ddoc index more readable. Here are some early results: http://bot.neostrada.pl/dpl.org/std.datetime.html Do you know some free icons of class, enum, function, etc? I'm thinking of something like this: http://msdn.microsoft.com/en-us/library /y47ychfe%28v=vs.80%29.aspx Th

Re: wxC & wxD

2011-11-28 Thread Gour
On Mon, 28 Nov 2011 21:01:38 +0100 Anders F Björklund wrote: > Of course, you don't *have* to wrap all the classes or methods ? > One could start with the ones that are likely to be used from D. Well, it is still big project and not so easy to say what needed. In any case, substantial part has

Re: A real Forum for D

2011-11-28 Thread Kagamin
Walter Bright Wrote: > On 11/27/2011 11:55 PM, Jacob Carlborg wrote: > > On 2011-11-27 23:30, Walter Bright wrote: > >> Those are all desirable properties. But the forum software I've seen > >> throws out what's good about NNTP news forums: > >> > >> 1. Threaded view > >> 2. Being able to mark mes

Re: boost crowd.

2011-11-28 Thread Kagamin
so Wrote: > On Mon, 28 Nov 2011 21:12:32 +0200, Kagamin wrote: > > > In Java separation is done with interfaces. I think it is right. > > For Java, yes. Java, D or C++, classes and structs are not a separation. Want a real separation? See COM: it doesn't even have notion of a field.

Re: wxC & wxD

2011-11-28 Thread Anders F Björklund
Gour wrote: Here's a more complete example of what it would look like in the end: http://svn.wxwidgets.org/svn/wx/wxPython/trunk/src/ http://wxruby.rubyforge.org/svn/trunk/wxruby/swig/classes/ Thank you. Of course, you don't *have* to wrap all the classes or methods ? One could start with th

Re: boost crowd.

2011-11-28 Thread Walter Bright
On 11/28/2011 4:00 AM, Alexey Veselovsky wrote: ok. I just removed from test.di all non public entities. // D import file generated from 'test.d' module test; public { void foo(); struct Boo { public { void boo(); } } } Now, let's bui

Re: A real Forum for D

2011-11-28 Thread Walter Bright
On 11/28/2011 5:33 AM, Jacob Carlborg wrote: I know that most of the forums look like this. But what says that they have to? I'm just trying to say that a forum doesn't have to look like these examples. You also complained how the forum sites doesn't work on a small screen. Have a look at this s

Re: boost crowd.

2011-11-28 Thread Walter Bright
On 11/28/2011 3:41 AM, Alexey Veselovsky wrote: ok. What about: struct Foo { int a; int b; // 100 more fields ... void foo(); } Did I must write in implementation all this 100+ fields in implementation? Yes. (Unless you decide to use the PIMPL idiom.)

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 21:12:32 +0200, Kagamin wrote: In Java separation is done with interfaces. I think it is right. For Java, yes.

Re: Concurrency.

2011-11-28 Thread Timon Gehr
On 11/28/2011 07:41 PM, Debdatta wrote: 1. Your variables are thread local. This guarantees some nice properties, like code that was intended to run in a single-threaded environment when it was written will behave nicely in a multi-threaded environment too, because every thread gets a copy of all

Re: boost crowd.

2011-11-28 Thread Kagamin
Alexey Veselovsky Wrote: > ok. What about: > > struct Foo { > int a; > int b; > // 100 more fields > ... > void foo(); > } > > Did I must write in implementation all this 100+ fields in implementation? > > In Ada and Modula there is 2 languages: one for implementation and >

Re: Concurrency.

2011-11-28 Thread Jonathan M Davis
On Monday, November 28, 2011 18:41:46 Debdatta wrote: > >>There is one to one feature correspondence. > > Of course. That is obvious.:D It just seemed counter intuitive to have every > variable I declare to be thread local. Will experiment with it some more > and see if I can get used to the conce

Re: SQL/database server capabilities NO ODBC please

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 15:34, Steve Teale wrote: On Sun, 27 Nov 2011 12:31:32 +0100, Jacob Carlborg wrote: On 2011-11-27 07:13, Steve Teale wrote: You may detest ODBC, but it is very soon going to be the only way to communicate with SQL Server short of writing another wire protocol effort. There was t

Re: Concurrency.

2011-11-28 Thread Debdatta
>>1. Your variables are thread local. This guarantees some nice >>properties, like code that was intended to run in a single-threaded >>environment when it was written will behave nicely in a multi-threaded >>environment too, because every thread gets a copy of all global data. >>This is a sane def

Re: boost crowd.

2011-11-28 Thread Kagamin
so Wrote: > http://cpp-next.com/archive/2011/11/having-it-all-pythy-syntax/ o.O overload a lambda?

Re: boost crowd.

2011-11-28 Thread Timon Gehr
On 11/28/2011 06:41 PM, Maxim Fomin wrote: 2011/11/28 Timon Gehr: On 11/28/2011 09:01 AM, so wrote: On Mon, 28 Nov 2011 03:44:23 +0200, Walter Bright wrote: On 11/27/2011 4:44 PM, Alexey Veselovsky wrote: "D has a true module system that supports separate compilation and generates and us

Re: Structs on private section.

2011-11-28 Thread Peter Alexander
On 28/11/11 1:56 AM, deadalnix wrote: Le 28/11/2011 03:29, Alexey Veselovsky a écrit : D's private is different than some other languages (e.g. C++). 'private' provides access to the entire module. public: no access limitation private: access by the module package: access by the modul

Re: boost crowd.

2011-11-28 Thread Timon Gehr
On 11/28/2011 05:07 PM, Maxim Fomin wrote: 2011/11/28 Max Samukha: On 11/28/2011 02:29 PM, so wrote: On Mon, 28 Nov 2011 13:58:25 +0200, Max Samukha wrote: How would you write libraries? The way they do, for example, in C# - interface definitions are stored in the library, no need for sepa

Re: boost crowd.

2011-11-28 Thread Timon Gehr
On 11/28/2011 05:41 PM, Alexey Veselovsky wrote: Separate hand written specification is rulez for human. It is best short module description (with some useful manually written comments). I like it more then autogenerated docs (by doxygen and so on). Autogenerated specifications (headers and so o

Re: boost crowd.

2011-11-28 Thread Maxim Fomin
2011/11/28 Timon Gehr : > On 11/28/2011 09:01 AM, so wrote: >> >> On Mon, 28 Nov 2011 03:44:23 +0200, Walter Bright >> wrote: >> >>> On 11/27/2011 4:44 PM, Alexey Veselovsky wrote: "D has a true module system that supports separate compilation and generates and uses module summaries

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-28 Thread Trass3r
Am 28.11.2011, 18:21 Uhr, schrieb Benjamin Thaut : I don't think porting any game to D is a good idea right now. I've did some major game developement on D. Half my code uses manual memory management and still the D garbage collector is a major performance issue. Unless you want to do all of

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 19:26:23 +0200, Timon Gehr wrote: Nobody stops you from hand crafting *.di files. My point exactly.

Re: wxC & wxD

2011-11-28 Thread Gour
On Mon, 28 Nov 2011 16:18:33 +0100 Anders F Björklund wrote: > At this point in time it doesn't matter, the generated files are > different even if the scripts to generate them are somewhat similar. > The API is also different, from the different languages used and > from this recent push to rena

Re: boost crowd.

2011-11-28 Thread Timon Gehr
On 11/28/2011 09:01 AM, so wrote: On Mon, 28 Nov 2011 03:44:23 +0200, Walter Bright wrote: On 11/27/2011 4:44 PM, Alexey Veselovsky wrote: "D has a true module system that supports separate compilation and generates and uses module summaries (highbrowspeak for "header files") automatically fr

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-28 Thread Benjamin Thaut
Am 23.11.2011 17:16, schrieb deadalnix: Hi, I want to suggest a project to the community. Doom3 source code has just been released, and I think we may want to do a port in D. Here are the reasons : 1/ I think D is suitable and pertinent for video games. 2/ This would make a solid code base to pr

Re: Concurrency.

2011-11-28 Thread Timon Gehr
On 11/28/2011 01:57 PM, Debdatta wrote: @Michael, Thanks for clearing that up. Your post was very informative. :) Actually, the private data of your thread object could be used by other threads if the MyThread object is accessible from another thread and someone calls a method on it. Absolut

Re: boost crowd.

2011-11-28 Thread Adam Ruppe
Do you think it'd be a good thing to put the .di file in the generated compiled lib? That'd be somewhat similar to the c# example. dmd myprog.d something.dll searches something.dll for a .di reference, and adds it to the compile command line if it's there.

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 18:41:30 +0200, Alexey Veselovsky wrote: Separate hand written specification is rulez for human. It is best short module description (with some useful manually written comments). I like it more then autogenerated docs (by doxygen and so on). I agree for C/C++ and even fo

Re: boost crowd.

2011-11-28 Thread Max Samukha
On 11/28/2011 06:07 PM, Maxim Fomin wrote: In conclusion, I find D module support the worst one. Sad but true.

Re: boost crowd.

2011-11-28 Thread Alexey Veselovsky
Separate hand written specification is rulez for human. It is best short module description (with some useful manually written comments). I like it more then autogenerated docs (by doxygen and so on). Autogenerated specifications (headers and so on) are worst and ugly. But in language like java an

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 18:21:03 +0200, Max Samukha wrote: Could you clarify what is the most important part? As i tried in the above post, header files are specs, a contract between library writer and the user. A dll itself is not a spec, it is the implementation. If you want to use a libra

Re: boost crowd.

2011-11-28 Thread Max Samukha
On 11/28/2011 04:05 PM, so wrote: For the second part if library writer changes anything with "implementation", that would not affect the user. In your case it does, because there is no distinction between specification and implementation There is, but the specification is bundled with the impl

Re: is D ncurses-only language? (dsource forums)

2011-11-28 Thread Justin C Calvarese
On Mon, Nov 28, 2011 at 10:08 AM, Gour wrote: > btw, do you have any influence @dsource forums? > > I registered 8 days ago and still neither received confirmation email > that my account was activated nor I can login. > "To register as a dsource user, head over to Forums and use the Register li

Re: boost crowd.

2011-11-28 Thread Max Samukha
On 11/28/2011 03:52 PM, so wrote: On Mon, 28 Nov 2011 15:34:19 +0200, Max Samukha wrote: No, it has nothing to do with the IDE. The article describes a visual tool for viewing meta-data stored in a .NET binary. You don't have to use it. Specially for you, die-hard IDE haters, this is how to u

Re: boost crowd.

2011-11-28 Thread Maxim Fomin
2011/11/28 Max Samukha : > On 11/28/2011 02:29 PM, so wrote: >> >> On Mon, 28 Nov 2011 13:58:25 +0200, Max Samukha >> wrote: >> How would you write libraries? >>> >>> The way they do, for example, in C# - interface definitions are stored >>> in the library, no need for separate headers. >> >>

Re: is D ncurses-only language?

2011-11-28 Thread Gour
On Wed, 23 Nov 2011 22:58:00 +0100 Mike Wey wrote: > Yes, I'll probably update GtkD to the latest 2.x release before > looking at GTK+ 3. Have you considered using SWIG to provide GtkD bindings? btw, do you have any influence @dsource forums? I registered 8 days ago and still neither received

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-28 Thread Regan Heath
On Sat, 26 Nov 2011 21:04:28 -, Paulo Pinto wrote: Am 25.11.2011 00:33, schrieb Somedude: Le 25/11/2011 00:14, Andrej Mitrovic a écrit : I remember reading this ages ago: http://fabiensanglard.net/quakeSource/index.php Besides there has already been a FPS written in D, and that hasn't

Re: float.min, double.min, int.min

2011-11-28 Thread bearophile
Andrea Fontana: > writeln("int.max: ", int.max); > writeln("int.min: ", int.min); > writeln("float.max: ", float.max); > writeln("float.min: ", float.min); > } > > it prints: > int.max: 2147483647 <-- no int > int.max > int.min: -2147483648 <-- no int < int.min > float.max: 3.

Re: float.min, double.min, int.min

2011-11-28 Thread Andrea Fontana
D fixed a lot of predecessor's mistakes :) Il giorno lun, 28/11/2011 alle 16.59 +0200, so ha scritto: > On Mon, 28 Nov 2011 16:53:11 +0200, Andrea Fontana > wrote: > > > dmd 2.056. > > > > void main(string[] args) > > { > > writeln("int.max: ", int.max); > > writeln("int.min: ", int.min);

Re: struct and default constructor

2011-11-28 Thread Steve Teale
On Sun, 27 Nov 2011 21:39:05 +0100, Andrej Mitrovic wrote: > That's not a workaround, that ctor never gets called unless you pass an > argument. But it lets you pass a Range test.

Re: wxC & wxD

2011-11-28 Thread Anders F Björklund
Gour wrote: If you were to use SWIG, you would still have the same two libraries ? Just that files would be: example.d + example_im.d, example_wrap.cxx (as generated by SWIG from your example.i source file and the headers) whereas they are currently called: wx/Example.d and wxc/example.cpp OK;

Re: float.min, double.min, int.min

2011-11-28 Thread so
On Mon, 28 Nov 2011 16:53:11 +0200, Andrea Fontana wrote: dmd 2.056. void main(string[] args) { writeln("int.max: ", int.max); writeln("int.min: ", int.min); writeln("float.max: ", float.max); writeln("float.min: ", float.min); } it prints: int.max: 2147483647 <-- no int > int

float.min, double.min, int.min

2011-11-28 Thread Andrea Fontana
dmd 2.056. void main(string[] args) { writeln("int.max: ", int.max); writeln("int.min: ", int.min); writeln("float.max: ", float.max); writeln("float.min: ", float.min); } it prints: int.max: 2147483647 <-- no int > int.max int.min: -2147483648 <-- no int < int.min float.max:

Re: Phobos Wish List/Next in Review Queue?

2011-11-28 Thread so
On Mon, 28 Nov 2011 15:32:23 +0200, Steven Schveighoffer wrote: Yes, but let's not call this a "range", since it does not work in functions that use ranges or with foreach (this is Walter's goal). How bout strange? (Yes, i am bored)

Try Expression

2011-11-28 Thread Xinok
Instead of having to write if(is(typeof(exp))), how about if(try(exp)) ?

Re: SQL/database server capabilities NO ODBC please

2011-11-28 Thread Steve Teale
On Sun, 27 Nov 2011 12:31:32 +0100, Jacob Carlborg wrote: > On 2011-11-27 07:13, Steve Teale wrote: >> You may detest ODBC, but it is very soon going to be the only way to >> communicate with SQL Server short of writing another wire protocol >> effort. There was the alternative of OLE DB, but MS

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 15:52:51 +0200, so wrote: Now how do you know you have a "Lib", and it implements "hello", what rule enforces that? If this is all it does, you are overlooking the most important point of header files. It was obscure. A header enforces its contents for both library writ

Re: A real Forum for D

2011-11-28 Thread Gour
On Mon, 28 Nov 2011 14:37:38 +0100 Somedude wrote: > The main drawback of newsgroups is the absence of a search feature. > Apart from that, I like it. It's the drawback of your *newsreader* and not of the newsgroups itself. I use Claws-mail and have powerful search features included. Sincerel

Re: boost crowd.

2011-11-28 Thread so
On Mon, 28 Nov 2011 15:34:19 +0200, Max Samukha wrote: No, it has nothing to do with the IDE. The article describes a visual tool for viewing meta-data stored in a .NET binary. You don't have to use it. Specially for you, die-hard IDE haters, this is how to use the terminal to create a m

Re: Concurrency.

2011-11-28 Thread Dejan Lekic
> >>>Not having default sharing is about providing guaranties, it's about >>>making thread-safety checkable by the compiler. > > No piece of code can absolutely guarantee threading errors. When you start Threading errors and thread-safety checks are different things... It is pretty much possibl

Re: boost crowd.

2011-11-28 Thread Maxim Fomin
2011/11/28 Marco Leise : > Am 28.11.2011, 11:02 Uhr, schrieb Jude <10equa...@gmail.com>: > >>> I tried to write a lib and a project, which used that lib >>> separately, but came to conclusion that the best choice it to pull >>> lib code to project one. And it is not a biggest problem, because >>> d

Re: A real Forum for D

2011-11-28 Thread Somedude
Le 27/11/2011 20:31, Gour a écrit : > On Sun, 27 Nov 2011 18:25:20 + (UTC) > alex wrote: > >> That's it. To be more beginner-friendly. Not to be that unnecessarily >> complicated and opaque. > > What is not beginner-friendly in this group? > > My mailer allows reading news, I selected digit

Re: A real Forum for D

2011-11-28 Thread Jacob Carlborg
On 2011-11-28 11:55, Walter Bright wrote: On 11/27/2011 11:55 PM, Jacob Carlborg wrote: Then that's just bad design. If the forum is designed correctly there won't be any problem. Here's a typical example: http://www.cuda-challenger.com/cc/index.php?topic=72850.0 Check out all of the vertic

Re: boost crowd.

2011-11-28 Thread Max Samukha
On 11/28/2011 02:29 PM, so wrote: On Mon, 28 Nov 2011 13:58:25 +0200, Max Samukha wrote: How would you write libraries? The way they do, for example, in C# - interface definitions are stored in the library, no need for separate headers. Are we talking about the same thing? Something like h

  1   2   >