Nick Sabalausky wrote:
Thank you, i'll see. Unfortunately i'm not shure dmd can helps and of
course, peoples rudely hopes for native solution... :)
I think he means that some people expect unix apps to do things the unix
way, which is scattering the parts of each application across the
Jordi Sayol wrote:
What's the approximate total amount of people that uses ALT-Linux?
Hard to estimate, i do afraid.
If overlook some statistic of ALT's forum
(http://forum.altlinux.org/index.php?action=stats), there are circa 6680 of
*registered* users in the forum and even more in
On 2011-03-09 00:14, Daniel Gibson wrote:
Am 08.03.2011 20:37, schrieb Andrei Alexandrescu:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
Andrei Alexandrescu wrote:
On 3/8/11 3:11 PM, Jens Mueller wrote:
Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars. Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Great. I find
On 2011-03-08 20:37, Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
How about a GUI library. Probably helping with
I've tried to build dmd2-2.0.52 on my newly installed PCBSD 9.0, but
unfortunately it's not for x86_64.
Any idea when we might find dmd2 for 64 bit port ready?
Sincerely,
Gour
--
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)
On 03/09/2011 01:21 AM, Jens Mueller wrote:
%u wrote:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars. Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
Uh... how helping fix compiler bugs? Could
On 03/09/2011 01:52 AM, Andrei Alexandrescu wrote:
On 3/8/11 4:11 PM, %u wrote:
Uh... how helping fix compiler bugs? Could we help with that? I
feel that's *much* more important than benchmarking, for instance,
since it doesn't make sense to benchmark something if it has bugs.
:\
The funny
spir wrote:
On 03/09/2011 01:21 AM, Jens Mueller wrote:
%u wrote:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars. Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
Uh... how helping fix
On 03/09/2011 10:57 AM, spir wrote:
On 03/09/2011 01:52 AM, Andrei Alexandrescu wrote:
On 3/8/11 4:11 PM, %u wrote:
Uh... how helping fix compiler bugs? Could we help with that? I
feel that's *much* more important than benchmarking, for instance,
since it doesn't make sense to benchmark
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Andrei Alexandrescu wrote:
http://apps.ycombinator.com/item?id=2301249
That is great. It dates back to 2007. But they use D1 and ldc, I think.
Otherwise this would be a good promotional project for D2.
Jens
On 2011-03-09 11:11, Trass3r wrote:
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Too bad that's the general opinion people seem to have about GUI
libraries. I don't understand what they don't like about
On 03/09/2011 11:46 AM, Jacob Carlborg wrote:
On 2011-03-09 11:11, Trass3r wrote:
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Too bad that's the general opinion people seem to have about GUI libraries. I
On Wednesday 09 March 2011 01:28:43 Gour wrote:
I've tried to build dmd2-2.0.52 on my newly installed PCBSD 9.0, but
unfortunately it's not for x86_64.
Any idea when we might find dmd2 for 64 bit port ready?
Do you mean having dmd _itself_ as a 64-bit binary or having dmd _build_ 64-bit
I think the advantage of gtk or Qt is people can reinvest previous
knowledge of the framework. (I mean, they are cross-language in
addition to be cross-platform ;-) I would personly prefere a clearly
designed D-specific GUI system than gtk's huge mess. (Dunno about
Qt, people seem to find it far
Increasing the sizes of an array has always given me the shivers, as
beautiful as it is.
Could someone explain why this code behaves the way it does?
string s = 1234;
s.length = 7;
writefln(\%s\, s);
prints: 1234���
Given that it makes no sense to extend a const-size array,
Am 09.03.2011 09:39, schrieb Jacob Carlborg:
On 2011-03-09 00:14, Daniel Gibson wrote:
Am 08.03.2011 20:37, schrieb Andrei Alexandrescu:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
Am 09.03.2011 11:55, schrieb spir:
On 03/09/2011 11:46 AM, Jacob Carlborg wrote:
On 2011-03-09 11:11, Trass3r wrote:
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Too bad that's the general opinion people
Named arguments are useful when you have a function that takes a large
number of parameters, the vast majority of which have default values.
For example, have a look at this constructor in wxWidgets:
http://docs.wxwidgets.org/trunk/classwx_frame.html#01b53ac2d4a5e6b0773ecbcf7b5f6af8
Am 09.03.2011 08:24, schrieb Jason E. Aten:
On Wed, Mar 9, 2011 at 12:55 AM, Walter Bright
newshou...@digitalmars.com mailto:newshou...@digitalmars.com wrote:
On 3/8/2011 1:23 PM, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there
On 08/03/2011 19:37, Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
I've added two ideas in the IDE category, for
On Wed, 09 Mar 2011 06:41:54 -0500, %u wfunct...@hotmail.com wrote:
Increasing the sizes of an array has always given me the shivers, as
beautiful as it is.
Since dmd around 2.042, array resizing and memory management has been
extremely safe. It should be very difficult for you to get into
On Tue, 08 Mar 2011 18:33:31 -0500, Bruno Medeiros
brunodomedeiros+spam@com.gmail wrote:
I'm not saying all pointer arithmetic and manipulation should be
illegal. It could be allowed, but only so long as the coder maintains
the contract of the pure attribute. So this means that you could
Caligo Wrote:
And maybe, just maybe, today we would have a production quality free and
open source D compiler that just works. Good luck trying to compile dil,
ldc, etc, let alone have them compile your D code and produce an executable
that runs the way it should.
What's problem? If dmd
On 08/03/2011 21:37, Steven Schveighoffer wrote:
On Tue, 08 Mar 2011 15:29:28 -0500, Bruno Medeiros
brunodomedeiros+spam@com.gmail wrote:
On 28/02/2011 22:13, Steven Schveighoffer wrote:
Dunno, vim doesn't do that for me currently.
I feel tempted to say something very short and concise
On 09/03/2011 06:10, Brad Roberts wrote:
Personally, I spend_way_ more time reading code (mine or other peoples) than I
spend writing code. Ignoring time, I
also read far more lines/files/whatever code than I write. I suspect these
things are going to vary highly from person
to person and
On 2011-03-09 12:12, %u wrote:
I think the advantage of gtk or Qt is people can reinvest previous
knowledge of the framework. (I mean, they are cross-language in
addition to be cross-platform ;-) I would personly prefere a clearly
designed D-specific GUI system than gtk's huge mess. (Dunno
On 2011-03-09 11:55, spir wrote:
On 03/09/2011 11:46 AM, Jacob Carlborg wrote:
On 2011-03-09 11:11, Trass3r wrote:
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Too bad that's the general opinion people
On 2011-03-09 13:09, Daniel Gibson wrote:
Am 09.03.2011 09:39, schrieb Jacob Carlborg:
On 2011-03-09 00:14, Daniel Gibson wrote:
Am 08.03.2011 20:37, schrieb Andrei Alexandrescu:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars.
Please review and contribute to the
On Wed, 09 Mar 2011 04:37:43 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Bindings to
On 2011-03-09 13:30, Bruno Medeiros wrote:
On 08/03/2011 19:37, Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
On 9 March 2011 13:22, Gareth Charnock gareth.charn...@gmail.com wrote:
Named arguments are useful when you have a function that takes a large
number of parameters, the vast majority of which have default values. For
example, have a look at this constructor in wxWidgets:
On Wed, 9 Mar 2011 02:58:25 -0800
Jonathan M Davis jmdavisp...@gmx.com wrote:
As for producing 64-bit binaries with dmd, as of dmd 2.052, if you
build with - m64 on Linux, dmd should produce 64-bit binaries just
fine. However, I don't know how well it will work for any of the BSDs.
Well, when
On 3/9/11 1:24 AM, Jacob Carlborg wrote:
On 2011-03-08 20:37, Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Thanks,
Andrei
How
On 3/9/11, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote:
but that requires compiling and using GDC, which
apparently has a host of issues and problems as well;
It doesn't have much building problems anymore. There's a couple of
patches that need to be applied, but everything is described
On Wed, 09 Mar 2011 01:24:56 -0600, Jason E. Aten wrote:
On Wed, Mar 9, 2011 at 12:55 AM, Walter Bright
newshou...@digitalmars.comwrote:
On 3/8/2011 1:23 PM, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there any how to?
IIRC you have to edit linux.mak to
On Wed, 09 Mar 2011 04:37:43 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
Networking
On 3/9/11 7:34 AM, Masahiro Nakagawa wrote:
On Wed, 09 Mar 2011 04:37:43 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars. Please review and contribute to the project ideas page:
On Wed, 09 Mar 2011 09:02:14 -0500, Bruno Medeiros
brunodomedeiros+spam@com.gmail wrote:
Although in the particular cased of named arguments, I still don't feel
it is worthwhile. Not unless it could be done in a very orthogonal way
(both in semantics and syntax), and even so it should
On 2011-03-09 17:00, Andrei Alexandrescu wrote:
On 3/9/11 1:24 AM, Jacob Carlborg wrote:
On 2011-03-08 20:37, Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital Mars.
Please review and contribute to the project ideas page:
Huh, interesting, okay.
I think pitfalls like this one (with the garbage collector, for
example) should definitely be documented somewhere. I would imagine
that quite a few people who try to set the length of an array won't
realize that they can run out of memory this way, especially because
it's
Andrei Alexandrescu wrote:
I just submitted an application for GSoC 2011 on behalf of Digital
Mars. Please review and contribute to the project ideas page:
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas
I did some research on Protocol Buffers. I found
On 07/03/11 01:01, Caligo wrote:
On Sun, Mar 6, 2011 at 12:24 PM, Peter Alexander peter.alexander.au
http://peter.alexander.au@gmail.com http://gmail.com wrote:
On 6/03/11 4:22 PM, bearophile wrote:
So I think it's not worth adding to D.
But if you don't agree...
On 03/09/2011 06:20 PM, Steven Schveighoffer wrote:
It's kind of like arrays in D. Every time I have to use another language, I
miss D's array syntax features. All the same functionality is there, it just
takes more effort to do the same thing. That little effort is not terrible,
but I much
Despite D is currently not widely used, it's not hard for me to find references
about D into computer science papers I find around.
This paper is titles Code Sandwiches, by Matt Elder, Steve Jackson, and Ben
Liblit, it discusses D scope guards too (page 7 and several successive pages):
== Quote from bearophile (bearophileh...@lycos.com)'s article
One of the things the paper says about D scope guards is: Scope guards do not
provide encapsulation.
(Rolls eyes.) I feel like this is a standard criticism of language features
that's code for I don't like this feature. IIRC they
bearophile napisał:
One of the things the paper says about D scope guards is: Scope guards do
not provide encapsulation.
Yep, they don't. So?
--
Tomek
On 09.03.2011 23:15, bearophile wrote:
Despite D is currently not widely used, it's not hard for me to find references
about D into computer science papers I find around.
This paper is titles Code Sandwiches, by Matt Elder, Steve Jackson, and Ben
Liblit, it discusses D scope guards too (page
On Tue, 08 Mar 2011 22:23:19 +0100, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there any how to?
IIRC you have to edit linux.mak to use -m64 instead of -m32.
Ok, I wrote a simple bash script:
===BEGIN===
#!/bin/bash
echo building dmd...
cd ./dmd
make -f
On Wed, 09 Mar 2011 16:52:51 +0100, Gour wrote:
On Wed, 9 Mar 2011 02:58:25 -0800
Jonathan M Davis jmdavisp...@gmx.com wrote:
As for producing 64-bit binaries with dmd, as of dmd 2.052, if you
build with - m64 on Linux, dmd should produce 64-bit binaries just
fine. However, I don't know
Nick Sabalausky a@a.a wrote in message
news:il8rmg$176i$1...@digitalmars.com...
But why is it that academic authors have a chronic inability to release
any form of text without first cramming it into a goddamn PDF of all
things?
It's like how my dad tries to email photos by sticking them
dsimcha dsim...@yahoo.com wrote in message
news:il8nlh$10c1$1...@digitalmars.com...
== Quote from bearophile (bearophileh...@lycos.com)'s article
One of the things the paper says about D scope guards is: Scope guards
do not
provide encapsulation.
(Rolls eyes.) I feel like this is a
Am 09.03.2011 22:33, schrieb Nick Sabalausky:
Nick Sabalausky a@a.a wrote in message
news:il8rmg$176i$1...@digitalmars.com...
But why is it that academic authors have a chronic inability to release
any form of text without first cramming it into a goddamn PDF of all
things?
It's like
Am 09.03.2011 22:49, schrieb Daniel Gibson:
Am 09.03.2011 22:33, schrieb Nick Sabalausky:
Nick Sabalausky a@a.a wrote in message
news:il8rmg$176i$1...@digitalmars.com...
But why is it that academic authors have a chronic inability to release
any form of text without first cramming it into
I've started to push more of my smaller work projects through D now, which
means I had to dive a lot through the standard library source files, something
I've previously complained about.
As a result of (my) complaining and being a huge fan of XMind, I decided to
try to organize the library for
On Wed, Mar 9, 2011 at 4:46 AM, Jacob Carlborg d...@me.com wrote:
On 2011-03-09 11:11, Trass3r wrote:
How about a GUI library. Probably helping with an already existing one,
DWT for example.
Good idea, but rather improve GtkD or QtD.
Too bad that's the general opinion people seem to have
Daniel Gibson metalcae...@gmail.com wrote in message
news:il8t79$2t70$2...@digitalmars.com...
Am 09.03.2011 22:49, schrieb Daniel Gibson:
Am 09.03.2011 22:33, schrieb Nick Sabalausky:
Nick Sabalausky a@a.a wrote in message
news:il8rmg$176i$1...@digitalmars.com...
But why is it that academic
Where I work, we find it very useful to start a process, load data, then fork()
to parallelize. Our data is large, such that we'd run out of memory trying to
run a complete copy on each core. Once the process is loaded, we don't need
that much writable memory, so fork is appealing to share
Am 09.03.2011 23:38, schrieb Nick Sabalausky:
Daniel Gibson metalcae...@gmail.com wrote in message
news:il8t79$2t70$2...@digitalmars.com...
Am 09.03.2011 22:49, schrieb Daniel Gibson:
Am 09.03.2011 22:33, schrieb Nick Sabalausky:
Nick Sabalausky a@a.a wrote in message
This is fantastic news! Many thanks for all your hard work. Not only
seems LDC2 coming closer to be supporting the current D2, there is now
SDC too (I must admit that a self hosting compiler (front end + LLVM
back-end in D I mean) is a big statement for a language in my view).
Please keep up
On 03/09/2011 09:24 PM, dsimcha wrote:
2. Encapsulation is only a means, not an end in itself. Sometimes people lose
sight of this. The end goal is to write correct, efficient, readable,
maintainable programs. If increasing encapsulation hurts these goals instead of
helping them (as
On 03/09/2011 10:30 PM, Nick Sabalausky wrote:
But why is it that academic authors have a chronic inability to release any
form of text without first cramming it into a goddamn PDF of all things?
This is one example of why I despise Adobe's predominance: PDF is fucking
useless for anything but
On 09/03/2011 06:55, Walter Bright wrote:
On 3/8/2011 1:23 PM, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there any how to?
IIRC you have to edit linux.mak to use -m64 instead of -m32.
It has worked in the past, but the 64 bit build is not regularly tested.
On Wednesday, March 09, 2011 16:23:15 Nebster wrote:
On 09/03/2011 06:55, Walter Bright wrote:
On 3/8/2011 1:23 PM, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there any how to?
IIRC you have to edit linux.mak to use -m64 instead of -m32.
It has
On 10/03/2011 00:30, Jonathan M Davis wrote:
On Wednesday, March 09, 2011 16:23:15 Nebster wrote:
On 09/03/2011 06:55, Walter Bright wrote:
On 3/8/2011 1:23 PM, Trass3r wrote:
Yes, but you can compile an x64 dmd yourself on Linux.
Is there any how to?
IIRC you have to edit linux.mak to
spir:
(Thank godS, Unbuntu's doc viewer recently got an inverse video mode.
Unthank
gods, white on black is far to be the most legible color combination. Anyway,
better than the opposite...)
Two of the most important PDF viewrs have an option to change the backgroup
color of the pages to
On Tue, Mar 8, 2011 at 9:54 AM, spir denis.s...@gmail.com wrote:
On 03/08/2011 03:33 PM, Caligo wrote:
On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyerb.hel...@gmail.com
wrote:
On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
On Mon, Mar 7, 2011 at 11:34 PM, Bernard
On Tue, Mar 8, 2011 at 9:48 AM, Iain Buclaw ibuc...@ubuntu.com wrote:
== Quote from Caligo (iteronve...@gmail.com)'s article
--bcaec51a83ee693a30049df97ef8
Content-Type: text/plain; charset=ISO-8859-1
On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyer b.hel...@gmail.com
wrote:
On Tue, 08
Am 10.03.2011 02:02, schrieb Caligo:
On Tue, Mar 8, 2011 at 9:54 AM, spir denis.s...@gmail.com wrote:
On 03/08/2011 03:33 PM, Caligo wrote:
On Tue, Mar 8, 2011 at 12:29 AM, Bernard Helyerb.hel...@gmail.com
wrote:
On Tue, 08 Mar 2011 00:15:54 -0600, Caligo wrote:
On Mon, Mar 7, 2011
On 3/9/2011 4:30 PM, Jonathan M Davis wrote:
Much as I'd love to have a 64-bit binary of dmd, I don't think that the gain is
even vaguely worth the risk at this point.
What is the gain? The only thing I can think of is some 64 bit OS distributions
are hostile to 32 bit binaries.
On Wednesday 09 March 2011 17:56:13 Walter Bright wrote:
On 3/9/2011 4:30 PM, Jonathan M Davis wrote:
Much as I'd love to have a 64-bit binary of dmd, I don't think that the
gain is even vaguely worth the risk at this point.
What is the gain? The only thing I can think of is some 64 bit OS
On Wednesday 09 March 2011 13:30:27 Nick Sabalausky wrote:
But why is it that academic authors have a chronic inability to release any
form of text without first cramming it into a goddamn PDF of all things?
This is one example of why I despise Adobe's predominance: PDF is fucking
useless for
I noticed last night that Phobos actually has all the machinations
required for reading gzipped files, buried in etc.c.zlib. I've wanted a
high-level D interface for reading and writing compressed files with an
API similar to normal file I/O for a while. I'm thinking about what
the
Am 10.03.2011 05:53, schrieb dsimcha:
I noticed last night that Phobos actually has all the machinations
required for reading gzipped files, buried in etc.c.zlib. I've wanted a
high-level D interface for reading and writing compressed files with an
API similar to normal file I/O for a while. I'm
On Wednesday 09 March 2011 21:10:59 Daniel Gibson wrote:
Am 10.03.2011 05:53, schrieb dsimcha:
I noticed last night that Phobos actually has all the machinations
required for reading gzipped files, buried in etc.c.zlib. I've wanted a
high-level D interface for reading and writing compressed
On Wed, 9 Mar 2011 19:08:04 -0800
Jonathan M Davis jmdavisp...@gmx.com wrote:
Truth be told, I would have thought that it would be a given that
there would be a 64-bit version of dmd when going to support 64-bit
compilation and was quite surprised when that was not your intention.
+1
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2409.1299728378.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 13:30:27 Nick Sabalausky wrote:
But why is it that academic authors have a chronic inability to release
any
form of text without first cramming it
On Wednesday 09 March 2011 22:18:53 Nick Sabalausky wrote:
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2409.1299728378.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 13:30:27 Nick Sabalausky wrote:
But why is it that academic authors have a chronic
Daniel Gibson metalcae...@gmail.com wrote in message
news:il90m3$2t70$3...@digitalmars.com...
Am 09.03.2011 23:38, schrieb Nick Sabalausky:
Daniel Gibson metalcae...@gmail.com wrote in message
news:il8t79$2t70$2...@digitalmars.com...
Am 09.03.2011 22:49, schrieb Daniel Gibson:
Am 09.03.2011
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2411.1299739219.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 22:18:53 Nick Sabalausky wrote:
Jonathan M Davis jmdavisp...@gmx.com wrote in message
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2408.1299726495.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 17:56:13 Walter Bright wrote:
On 3/9/2011 4:30 PM, Jonathan M Davis wrote:
Much as I'd love to have a 64-bit binary of dmd, I don't think that the
On Wednesday 09 March 2011 23:15:01 Nick Sabalausky wrote:
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2411.1299739219.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 22:18:53 Nick Sabalausky wrote:
Jonathan M Davis jmdavisp...@gmx.com wrote in message
On 03/10/2011 08:15 AM, Nick Sabalausky wrote:
Jonathan M Davisjmdavisp...@gmx.com wrote in message
news:mailman.2411.1299739219.4748.digitalmar...@puremagic.com...
On Wednesday 09 March 2011 22:18:53 Nick Sabalausky wrote:
Jonathan M Davisjmdavisp...@gmx.com wrote in message
On Tue, 08 Mar 2011 15:25:27 -0500, Steven Schveighoffer wrote:
Hey, wouldn't it be cool if I could add a custom allocator to all
classes!?...
class Collection(T, alloc = DefaultAllocator!T) {
Collection!(T) add(T t) { ...; return this; } // 20 other now subtly
incorrect functions
I gave this some thought, and I'm probably just a bit braindamaged by C#.
Consider you wish to unittest a class that fetches data from a database and
sends an
email.
The common scenario here is to use IoC and mock the objects so you can check
that
FetchData was called and SendEmail is called
In a (template) data structure I'm working on, I had the following thinko:
auto a = new T[n];
foreach (T i, ref e; a) {
e = i;
}
Then I instantiated it with T=bool, and n=256. Infinite loop, of course
-- the problem being that i wraps around to 0 after the last iteration.
1) Why does this code not work (dmd 2.051) and how do I fix it:
struct S
{
static S New()
{
S s;
return s;
}
const bool opEquals(ref const(S) s)
{
return true;
}
}
void main()
{
S s;
On Wed, 09 Mar 2011 11:40:25 -0500, SiegeLord n...@none.com wrote:
1) Why does this code not work (dmd 2.051) and how do I fix it:
struct S
{
static S New()
{
S s;
return s;
}
const bool opEquals(ref const(S) s)
{
Steven Schveighoffer Wrote:
It's a mis-designed feature of structs. There is a bug report on it:
http://d.puremagic.com/issues/show_bug.cgi?id=3659
It worked fine in D1. Or did you mean that the mis-designed feature is the
const system?
Anyway, thanks for the link to the bug report. I'll
On Wed, 09 Mar 2011 12:15:26 -0500, SiegeLord n...@none.com wrote:
Steven Schveighoffer Wrote:
It's a mis-designed feature of structs. There is a bug report on it:
http://d.puremagic.com/issues/show_bug.cgi?id=3659
It worked fine in D1. Or did you mean that the mis-designed feature is
On 03/09/2011 09:09 AM, Magnus Lie Hetland wrote:
In a (template) data structure I'm working on, I had the following thinko:
auto a = new T[n];
foreach (T i, ref e; a) {
e = i;
}
Then I instantiated it with T=bool, and n=256. Infinite loop, of course
-- the problem being that i wraps around to
Nick Sabalausky napisał:
Is there a way to get the fully-qualified name of an identifier without
doing demange( mangledName!(foo) )?
Heh, looks like there isn't. It may be worth filing an enhancement request for
__traits(fullyQualifiedName, foo).
BTW, what do you need it for?
--
Tomek
What is the most efficient way of implement a rotation of ubyte[4] array?
By rotation I mean: rotateRight([1, 2, 3, 4]) - [4, 1, 2, 3]
TIA,
Tom;
This is on Windows 7. Using a def file to stop the terminal window
coming up.
win.def
EXETYPE NT
SUBSYSTEM WINDOWS
bug.d
import std.stdio;
import std.string;
void main() {
auto f = File( z.txt, w );
scope( exit )
f.close;
string foo = bar;
Tom:
What is the most efficient way of implement a rotation of ubyte[4] array?
By rotation I mean: rotateRight([1, 2, 3, 4]) - [4, 1, 2, 3]
Two versions, I have done no benchmarks so far:
import std.c.stdio: printf;
union Four {
ubyte[4] a;
uint u;
}
void showFour(Four f) {
On 03/09/2011 03:41 PM, Tom wrote:
What is the most efficient way of implement a rotation of ubyte[4] array?
By rotation I mean: rotateRight([1, 2, 3, 4]) - [4, 1, 2, 3]
TIA,
Tom;
I don't know of anything more efficient than:
ubyte[4] bytes = [1,2,3,4];
bytes = bytes[$-1] ~
import std.process;
void main()
{
char[] chBuffer = new char[](256);
chBuffer[] = '\0';
chBuffer[0..3] = dir.dup;
auto result = shell(chBuffer.idup);
}
It does two things:
1. It prints out the result of the shell invocation to stdout. This shouldn't
happen.
2. It throws
On Wednesday, March 09, 2011 15:35:29 Kai Meyer wrote:
On 03/09/2011 03:41 PM, Tom wrote:
What is the most efficient way of implement a rotation of ubyte[4] array?
By rotation I mean: rotateRight([1, 2, 3, 4]) - [4, 1, 2, 3]
TIA,
Tom;
I don't know of anything more efficient than:
On 03/09/2011 04:25 PM, bearophile wrote:
Tom:
What is the most efficient way of implement a rotation of ubyte[4] array?
By rotation I mean: rotateRight([1, 2, 3, 4]) - [4, 1, 2, 3]
Two versions, I have done no benchmarks so far:
import std.c.stdio: printf;
union Four {
ubyte[4] a;
1 - 100 of 121 matches
Mail list logo