On Monday, 22 June 2015 at 16:33:43 UTC, Assembly wrote:
Does D has an equivalent to C#'s iterator
(https://msdn.microsoft.com/en-us/library/65zzykke.aspx)? if
so, where can I find it?
What I want is loop over a user-defined class/struct. In case
of C#, I just implement the IEnumerable and
On Thursday, 31 January 2013 at 00:54:54 UTC, Steven
Schveighoffer wrote:
On Wed, 30 Jan 2013 03:05:37 -0500, q66 quake...@gmail.com
wrote:
On Wednesday, 30 January 2013 at 03:02:38 UTC, deadalnix wrote:
On Wednesday, 30 January 2013 at 00:26:11 UTC, q66 wrote:
It deeply disturbs me
On Thursday, 31 January 2013 at 14:28:39 UTC, Steven
Schveighoffer wrote:
On Thu, 31 Jan 2013 08:14:15 -0500, q66 quake...@gmail.com
wrote:
On Thursday, 31 January 2013 at 00:54:54 UTC, Steven
Schveighoffer wrote:
On Wed, 30 Jan 2013 03:05:37 -0500, q66 quake...@gmail.com
wrote
On Wednesday, 30 January 2013 at 03:02:38 UTC, deadalnix wrote:
On Wednesday, 30 January 2013 at 00:26:11 UTC, q66 wrote:
It deeply disturbs me that people even take the original post
seriously.
Well, you may give some arguments instead of no, just no, to
convince people.
It just gives
On Tuesday, 29 January 2013 at 17:10:00 UTC, Steven Schveighoffer
wrote:
@property has gotten a lot of flak lately, and I think the
unenthusiastic implementation of it really hasn't helped.
BUT... there are a few problems with the original non-@property
implementation that are fixed by having
On Wednesday, 30 January 2013 at 00:26:11 UTC, q66 wrote:
It deeply disturbs me that people even take the original post
seriously.
That said, obviously, propreties should be implemented in the
library using opDot, with std.property implementing several
property-handling policies
It deeply disturbs me that people even take the original post
seriously.
On Friday, 25 January 2013 at 20:45:22 UTC, Szymon wrote:
Hi,
I would really like to start using D in our small company as a
C++ replacement. With that in mind I do have few questions:
1) Is D2 really ready for production code? I often hear ppl
complaining about compiler bugs or regressions
2) Is there a way to start adding D code to a C++ projects?
Yes. You'll need to expose parts of the D code as extern(C) or
extern(C++) to interface with it, and remember to initialize
the D runtime.
As he apparently is on Windows, you can only do this with a D
DLL, which are likely to
On Friday, 25 January 2013 at 21:07:00 UTC, q66 wrote:
2) Is there a way to start adding D code to a C++ projects?
Yes. You'll need to expose parts of the D code as extern(C) or
extern(C++) to interface with it, and remember to initialize
the D runtime.
As he apparently is on Windows
D's GC does not have serious problems. The only issue is
controversial status of GC.
D's GC has inherent issues with false positives, sometimes
freeing memory that you don't really want freed, causing
(sometimes hidden) bugs that are pretty much impossible to debug.
On Tuesday, 31 July 2012 at 17:16:56 UTC, Stuart wrote:
Oh, now, that's going too far. Do you think I'm some kind of
programming newbie? A college student, perhaps? I have a BSc in
Software Engineering, and I've been coding for 16 years. So
let's have less of the condescension, hmm?
errr I
On Tuesday, 31 July 2012 at 17:16:56 UTC, Stuart wrote:
Lately? I've only recently discovered D. What are you comparing
my current noise level to? Besides, most of my posts have been
constructive, to my mind. Granted, I got a bit frustrated
yesterday, but so what?
There's only one answer I
On Wednesday, 1 August 2012 at 00:44:56 UTC, Stuart wrote:
On Tuesday, 31 July 2012 at 19:07:52 UTC, q66 wrote:
On Tuesday, 31 July 2012 at 17:16:56 UTC, Stuart wrote:
Oh, now, that's going too far. Do you think I'm some kind of
programming newbie? A college student, perhaps? I have a BSc
Bernard's reaction was entirely reasonable, spewing ignorant
bullshit all around and then being like hurr durr i have a bsc
from software engineering, no wai deserves no better.
By the way, he's only proving what I said with these hurrr I'm
gonna leave responses (not that it wasn't apparent
On Wednesday, 1 August 2012 at 01:10:30 UTC, Andrei Alexandrescu
wrote:
On 7/31/12 8:48 PM, Stuart wrote:
I notice nobody else at all has objected to my being told to
fuck off
and stop wasting people's time. I guess it's okay for people
to talk to
me like that, yes?
I've also been surprised
On Friday, 27 July 2012 at 21:59:33 UTC, Paulo Pinto wrote:
On Friday, 27 July 2012 at 19:14:29 UTC, Stuart wrote:
On Friday, 27 July 2012 at 19:09:27 UTC, Paulo Pinto wrote:
On Friday, 27 July 2012 at 19:04:07 UTC, Stuart wrote:
Recursion isn't just a security risk - it's a performance
hit
All implementations of Lua also perform TOC and as far as I
know some of Python implementations as well.
err TCO :)
On Thursday, 19 July 2012 at 14:21:47 UTC, Petr Janda wrote:
Hi,
I'm an occasional lurker on the D forums just to see where the
language is going,but I'm a little puzzled. In another thread I
found this code
auto r = [5, 3, 5, 6, 8].sort.uniq.map!(x = x.to!string);
I don't understand whats
btw - as for your complains - I would blame poor D documentation
more than the feature itself; as for what type is x, it's
inferred from the prototype of the called function; type
inference is a standard feature in many static languages.
On Thursday, 19 July 2012 at 14:31:41 UTC, Petr Janda wrote:
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map!(). What's the point of the exclamation
mark, is it a
On Thursday, 19 July 2012 at 14:33:49 UTC, q66 wrote:
On Thursday, 19 July 2012 at 14:31:41 UTC, Petr Janda wrote:
Array gets sorted, then doubles are removed (uniq) and then
everything is converted to a string (map).
Everything was recently introduced around 2.059.
Ok, but what is map
On Saturday, 2 June 2012 at 21:01:03 UTC, John Belmonte wrote:
On Wednesday, 30 May 2012 at 18:53:26 UTC, Alex Rønne Petersen
wrote:
We're moving towards using ASCII rather than Ascii as the
naming style for abbreviations.
I don't agree with this style. Camel case employs
capitalization as
On Saturday, 28 April 2012 at 18:48:18 UTC, Walter Bright wrote:
Andrei and I had a fun discussion last night about this
question. The idea was which features in D are redundant and/or
do not add significant value?
A couple already agreed upon ones are typedef and the cfloat,
cdouble and
On Saturday, 28 April 2012 at 18:43:32 UTC, Walter Bright wrote:
On 4/28/2012 11:10 AM, H. S. Teoh wrote:
But the overload of 'is' as an operator with 'is()' as an
expression
(and its various ugly arbitrarily assigned syntaxes)? WAT.
It's not that unusual for an operator to have a binary
On Saturday, 28 April 2012 at 19:57:08 UTC, SomeDude wrote:
On Saturday, 28 April 2012 at 19:23:00 UTC, q66 wrote:
- AAs integrated in the language; you barely ever use AA
literals and having them purely in Phobos would help get rid
of the runtime fat, as well as better implementations
On Saturday, 28 April 2012 at 20:04:11 UTC, Walter Bright wrote:
On 4/28/2012 1:00 PM, bearophile wrote:
Phobos is too fat
As opposed to Phobos being phat?
Well my concern is so that it doesn't end up like Python standard
library, half-bitrotting and half-crap :) Huge standard library
is
On Saturday, 28 April 2012 at 20:05:30 UTC, SomeDude wrote:
On Saturday, 28 April 2012 at 19:21:51 UTC, Nick Sabalausky
wrote:
Walter Bright newshou...@digitalmars.com wrote in message
- Version blocks: They should be replaced with something that
utilizes
static if.
Version could be
On Saturday, 28 April 2012 at 20:35:40 UTC, SomeDude wrote:
On Saturday, 28 April 2012 at 20:09:50 UTC, q66 wrote:
On Saturday, 28 April 2012 at 20:05:30 UTC, SomeDude wrote:
There are minimalistic languages that don't add too much
complexity, instead it results in code being kept simple.
I
On Saturday, 28 April 2012 at 20:50:30 UTC, H. S. Teoh wrote:
On Sat, Apr 28, 2012 at 09:22:59PM +0200, q66 wrote:
[...]
- AAs integrated in the language; you barely ever use AA
literals and
having them purely in Phobos would help get rid of the runtime
fat, as
well as better implementations
On Saturday, 28 April 2012 at 21:19:00 UTC, H. S. Teoh wrote:
On Sat, Apr 28, 2012 at 10:07:54PM +0200, q66 wrote:
On Saturday, 28 April 2012 at 20:04:11 UTC, Walter Bright
wrote:
On 4/28/2012 1:00 PM, bearophile wrote:
Phobos is too fat
As opposed to Phobos being phat?
Well my concern is so
On Saturday, 28 April 2012 at 23:11:17 UTC, Peter Alexander wrote:
On Saturday, 28 April 2012 at 22:33:08 UTC, Timon Gehr wrote:
- UFCS:
The complexity comes from having multiple function invocation
syntaxes. UFCS actually makes that situation better without
adding a
lot of complexity
On Saturday, 14 April 2012 at 19:05:40 UTC, ReneSac wrote:
I have this simple binary arithmetic coder in C++ by Mahoney
and translated to D by Maffi. I added notrow, final and
pure and GC.disable where it was possible, but that didn't
made much difference. Adding const to the Predictor.p()
Forgot to mention specs: Dualcore Athlon II X2 240 (2.8GHz), 4GB
RAM, FreeBSD 9 x64, both compilers are 64bit.
On Saturday, 14 April 2012 at 20:58:01 UTC, Somedude wrote:
Le 14/04/2012 21:53, q66 a écrit :
On Saturday, 14 April 2012 at 19:05:40 UTC, ReneSac wrote:
I have this simple binary arithmetic coder in C++ by Mahoney
and
translated to D by Maffi. I added notrow, final and
pure and
GC.disable
On Monday, 9 April 2012 at 17:09:03 UTC, Andrej Mitrovic wrote:
import std.string;
void main()
{
string foo = foo;
string bar = format(%s %s %s, foo);
}
format expects 3 arguments, but what I really want is foo to be
used
for all 3 specifiers and not repeat 'foo' 3 times manually. Are
On Monday, 9 April 2012 at 17:24:35 UTC, Andrej Mitrovic wrote:
On 4/9/12, q66 quake...@gmail.com wrote:
Positional specifier works just fine for me.
Which version are you using? I'm on 2.058.
git
On Saturday, 7 April 2012 at 17:48:14 UTC, vmars316 wrote:
Greetings,
I am getting interested in D.
Pls, what License is for D setup.
Is it free?
Also, what operating systems can D run on?
Win7, Mac,?
Thanks...Vernon
Runs on Windows (x86), Linux (x86, 86_64), OS X (x86, x86_64) and
On Thursday, 5 April 2012 at 17:22:38 UTC, Minas wrote:
Many of you should know the website projecteuler.net, where
there are mathematical problems to solve with computers.
I am doing those in D, and after I finished one today, I
decided to compile it in C as well to compare the results.
On Sunday, 1 April 2012 at 18:32:05 UTC, Walter Bright wrote:
On 4/1/2012 7:11 AM, q66 wrote:
I'm currently writing ODE plain C-D bindings and I have a
question about
requirements for inclusion into Deimos; is it required to keep
the original
documentation comments in the .d files? I see all
On Sunday, 1 April 2012 at 19:34:49 UTC, Walter Bright wrote:
On 4/1/2012 11:35 AM, q66 wrote:
Figured so. I was asking because I ported ODE D bindings from
Derelict 2 to
Derelict 3 and making it without comments would be basically
just about some sed
processing. Anyway, I've been working
On Sunday, 1 April 2012 at 20:09:40 UTC, Walter Bright wrote:
On 4/1/2012 1:00 PM, q66 wrote:
On Sunday, 1 April 2012 at 19:34:49 UTC, Walter Bright wrote:
On 4/1/2012 11:35 AM, q66 wrote:
Figured so. I was asking because I ported ODE D bindings
from Derelict 2 to
Derelict 3 and making
On Sunday, 1 April 2012 at 20:32:00 UTC, Walter Bright wrote:
On 4/1/2012 1:12 PM, q66 wrote:
Cool. I'll try to get some other lib bindings up in the future
as well. :)
That would be most appreciated.
I'm preparing my game engine for possible migration to D. Means I
need all the libs ready
On Sunday, 1 April 2012 at 22:13:00 UTC, Guillaume Chatelet wrote:
In C++ it clearly matters to have very clean dependencies to
keep compilation time as low as possible ( Google even built a
tool to check unused #include -
http://code.google.com/p/include-what-you-use ).
So I was telling to
On Saturday, 11 February 2012 at 16:08:02 UTC, Jacob Carlborg
wrote:
On 2012-02-11 15:36, Nick Sabalausky wrote:
Era Scarecrowrtcv...@yahoo.com wrote in message
news:jzavmzbmjoyujhqyf...@dfeed.kimsufi.thecybershadow.net...
What are your thoughts?
There is no way you get a D application into
On Saturday, 4 February 2012 at 21:14:28 UTC, Nick Sabalausky
wrote:
Walter Bright newshou...@digitalmars.com wrote in message
news:jgk65f$c0b$1...@digitalmars.com...
.C (that's capital C; obviously that never worked on Windows)
That *can* work. Windows filenames may be case-insensitive, but
On Sunday, 8 January 2012 at 00:27:46 UTC, Walter Bright wrote:
On 1/7/2012 6:00 AM, Jacob Carlborg wrote:
Will dmd still produce OMF or will it be changed to produce
COFF?
It will be irrelevant, as the linker will read whatever it puts
out, and the linker will read COFF.
There is no
By the way, Walter, I'm fixing druntime and Phobos makefiles
after the Shared ELF merge so they can be built as shared libs (I
have them working both now, on my FreeBSD box). I just wanna ask
you, I think it would be a good idea to remove default phobos2
linkage from dmd and move that to
On Friday, 6 January 2012 at 20:03:01 UTC, Adam Wilson wrote:
On Fri, 06 Jan 2012 10:27:58 -0800, Manu turkey...@gmail.com
wrote:
Okay, so I was trying to link to a C lib, and I realised...
DMD doesn't
support/produce VS compatible libs.
I should have realised this sooner, noting the cv
Derek Wrote:
I've been out of the 'loop' with D for quite awhile now so I haven't been
keeping up with current developments.
I will have a need for a decent 64-bit compiled language soon and I was
wondering how close D is away from this.
--
Derek Parnell
Melbourne, Australia
== Quote from Dmitry Olshansky (dmitry.o...@gmail.com)'s article
On 27.07.2011 15:21, simendsjo wrote:
A simple hello world like dfl application takes 1.2mb. Upx does a
great job packing this to 200k, but I wonder if there is a way to make
optlink generate smaller executables?
I
Yes, I get the same issue. Though, if you directly navigate to certain article
from language reference, like
http://www.d-programming-language.org/property.html,
the list appears though, so it's a bug. Also, some Phobos documentation is
incomplete on d-p-l.org, like etc.c.curl.
52 matches
Mail list logo