On Thursday, 14 August 2014 at 13:19:36 UTC, Sergey Kozyr wrote:
Sorry for previous message. Once again:
I was reading D language reference and found some issue with
"case ... :" statement specifications.
Documentation http://dlang.org/statement#CaseStatement says
that after
case 1:
must be n
On Thursday, 14 August 2014 at 17:10:50 UTC, AsmMan wrote:
On Thursday, 14 August 2014 at 16:01:05 UTC, Baz wrote:
On Thursday, 14 August 2014 at 13:19:36 UTC, Sergey Kozyr
wrote:
Sorry for previous message. Once again:
I was reading D language reference and found some issue with
"case ... :"
"Attack" me on the content of:
http://wiki.dlang.org/Coming_From/Delphi
This is my user experience about coming from Pascal/Delphi to D.
On Thursday, 4 December 2014 at 23:27:05 UTC, bearophile wrote:
Baz:
"Attack" me on the content of:
http://wiki.dlang.org/Coming_From/Delphi
This is my user experience about coming from Pascal/Delphi to
D.
Thank you for the work :-)
Code Rosetta, etc. => Rosetta Code.
D has a feature
On Thursday, 29 January 2015 at 08:05:28 UTC, Laeeth Isharc wrote:
On Wednesday, 28 January 2015 at 18:46:05 UTC, Benjamin Thaut
wrote:
Am 28.01.2015 um 18:05 schrieb Andrei Alexandrescu:
On 1/28/15 9:01 AM, Benjamin Thaut wrote:
On Wednesday, 28 January 2015 at 16:18:18 UTC, Andrei
Alexandres
Hello, I remember the first post about this, a few monthes ago,
and the concept of concept is interesting. Do you think it'll be
possible to extract a collection of delegate from an agregate
which verifies a concept ?
- get the concept from an interface
- check if this concept is in a struct
-
On Thursday, 12 February 2015 at 14:12:00 UTC, FrankLike wrote:
If you want to look for some old information,that was created
by yourself,now you must look for it in Page one by one,it's
slower than get it by a link 'Get my all threads'.
Create a link 'Get my all threads' on http://forum.dlan
On Sunday, 15 February 2015 at 19:04:57 UTC, Meta wrote:
On Sunday, 15 February 2015 at 18:45:45 UTC, bearophile wrote:
Meta:
Oh, whoops. I mixed up average-case complexity with
worst-case. Although, isn't lookup O(n) in the worst case for
hash tables?
D associative arrays used to be O(1) a
On Saturday, 21 February 2015 at 18:30:18 UTC, Olivier Pisano
wrote:
On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote:
RAII(Resource Acquisition Is Initialization) is a good
thing,will D plan to do it?
It's already here :
import std.stdio;
struct Test
{
~this() { writeln("
On Saturday, 21 February 2015 at 18:30:18 UTC, Olivier Pisano
wrote:
On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote:
RAII(Resource Acquisition Is Initialization) is a good
thing,will D plan to do it?
It's already here :
import std.stdio;
struct Test
{
~this() { writeln("
On Thursday, 26 February 2015 at 10:55:43 UTC, Kingsley wrote:
float oneDegree = (PI / 180.0);
float first = -(oneDegree * 10.0);
float second = (oneDegree * 10.0);
float step = 0.01;
float[] r = iota(first,second,step).array;
writeln(r);
float item = 0.174531;
writeln(r.canFind(item));
/
On Thursday, 26 February 2015 at 11:12:42 UTC, Kingsley wrote:
On Thursday, 26 February 2015 at 11:04:58 UTC, Baz wrote:
On Thursday, 26 February 2015 at 10:55:43 UTC, Kingsley wrote:
float oneDegree = (PI / 180.0);
float first = -(oneDegree * 10.0);
float second = (oneDegree * 10.0);
float ste
On Saturday, 21 February 2015 at 19:20:48 UTC, JN wrote:
https://developer.apple.com/news/?id=02202015a
Interesting...
Apple is dropping GC in favor of automatic reference counting.
What are the benefits of ARC over GC? Is it just about
predictability of resource freeing? Would ARC make sense
On Friday, 6 March 2015 at 06:02:17 UTC, Taylor Hillegeist wrote:
So I have played with a few GUI libraries with bindings
available through D. Personally I find that it seems like there
is alot of effort being put forth on GUI projects.
It is my experience that most project's fail or die, not
On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote:
HexStrings:
http://dlang.org/lex.html#HexString
They're rarely used, but very useful when needed. But, as the
octal literals have shown, they can be easily replaced with a
library template:
x"00 FBCD 32FD 0A"
becomes:
On Sunday, 15 March 2015 at 21:34:22 UTC, Walter Bright wrote:
On 3/15/2015 2:18 PM, Baz wrote:
On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote:
HexStrings:
http://dlang.org/lex.html#HexString
They're rarely used, but very useful when needed. But, as the
octal literals
have
On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote:
Walter Bright:
Unfortunately, it needs to be a dropin replacement for x"...",
which returns a string/wstring/dstring.
This is bad. 99% of the times you don't want a
string/wstring/dstring out of a hex string:
https://issues.dlang.
On Monday, 16 March 2015 at 16:45:25 UTC, Andrei Alexandrescu
wrote:
On 3/16/15 9:29 AM, Baz wrote:
On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote:
Walter Bright:
Unfortunately, it needs to be a dropin replacement for
x"...", which
returns a string/wstring/dstring.
This is bad.
On Monday, 16 March 2015 at 21:32:45 UTC, Baz wrote:
On Monday, 16 March 2015 at 16:45:25 UTC, Andrei Alexandrescu
wrote:
On 3/16/15 9:29 AM, Baz wrote:
On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote:
Walter Bright:
Unfortunately, it needs to be a dropin replacement for
x"...", w
On Sunday, 15 March 2015 at 21:40:02 UTC, Walter Bright wrote:
On 3/15/2015 2:34 PM, Walter Bright wrote:
P.S. Also need to include all the examples in the dlang
reference as unittest
cases.
Also, HexStrings can handle w and d postfixes. Use the lexer.c
code for TOK::hexStringConstant() as a
On Tuesday, 17 March 2015 at 16:55:53 UTC, bearophile wrote:
Baz:
https://github.com/D-Programming-Language/phobos/pull/3058
I suggest to replace "litteral" with "literal", as in computer
science:
http://en.wikipedia.org/wiki/Literal_%28computer_programming%29
Bye,
bearophile
Thx, fixed.
On Tuesday, 17 March 2015 at 21:06:04 UTC, Artur Skawina wrote:
On 03/17/15 20:47, deadalnix via Digitalmars-d wrote:
Not that much. But q{ string are a pain in the ass.
Why? I'm not sure if you're referring to using or parsing them.
The only problem with the former is the lack of a
non-brac
On Tuesday, 17 March 2015 at 21:31:58 UTC, Artur Skawina wrote:
On 03/17/15 22:18, Baz via Digitalmars-d wrote:
On Tuesday, 17 March 2015 at 21:06:04 UTC, Artur Skawina wrote:
On 03/17/15 20:47, deadalnix via Digitalmars-d wrote:
Not that much. But q{ string are a pain in the ass.
Why? I
On Wednesday, 18 March 2015 at 22:05:18 UTC, Brian Schott wrote:
On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright
wrote:
I'm fed up with this problem. It is actively hurting us every
day.
https://issues.dlang.org/show_bug.cgi?id=14307
Anyone want to take this on? Shouldn't be partic
On Tuesday, 31 March 2015 at 08:36:00 UTC, Jacob Carlborg wrote:
On 2015-03-31 04:18, Andrei Alexandrescu wrote:
Thanks for this initiative. It would be indeed awesome if this
got a bit
more attention. Once we get the portal fleshed out, we can
promote the
link to the homepage.
One note abou
On Monday, 30 March 2015 at 01:11:55 UTC, bitwise wrote:
I came across this post a while back and decided to implement
it:
http://forum.dlang.org/thread/juf7sk$16rl$1...@digitalmars.com
My implementation:
https://github.com/bitwise-github/D-Reflection
The above conversation seemed to stop abru
@MartinNowak, @klickverbot and @ibuclaw
Is is time for 2.067 ?
On Tuesday, 31 March 2015 at 09:52:34 UTC, Baz wrote:
@MartinNowak, @klickverbot and @ibuclaw
Is is time for 2.067 ?
source:
https://github.com/kiith-sa/dmarkdown/pull/6
On Tuesday, 31 March 2015 at 12:31:14 UTC, Mathias Lang wrote:
Importing std.algorithm.searching won't work before.
A static if (__VERSION__ >= 2067) / else would solve it.
2015-03-31 13:20 GMT+02:00 Baz via Digitalmars-d <
digitalmars-d@puremagic.com>:
On Tuesday, 31 March 20
Kiith-Sa, come back with us !!
On Friday, 24 April 2015 at 11:00:23 UTC, Chris wrote:
I tested the performance of three types of loops (see code
below). It turns out that the fastest loop is the "plainLoop".
Unless my examples are completely screwed up, the difference
between "plainLoop" and the other two loops is gigantic (
On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote:
On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote:
On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote:
I should put in in a d-idioms anyway.
http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17?
excellent.
I
Hi, is it worth documenting stdc ?
I'm about to copy all the docs from offical sources, e.g
http://www.cplusplus.com/reference/cctype/.
There's been a post from W.B a few weeks ago about undocumented
sources.
I don't remember if it included stdc.
On Sunday, 26 April 2015 at 20:45:32 UTC, Walter Bright wrote:
On 4/26/2015 11:38 AM, Baz wrote:
Hi, is it worth documenting stdc ?
No. In general, D should not be re-documenting APIs where the
documentation exists elsewhere, because:
1. have to rewrite it because of copyright
2. such rewri
On Sunday, 26 April 2015 at 21:23:24 UTC, Baz wrote:
pubs.opengroup.org/onlinepubs/009695399/basedefs/_ctype.h.html
while it seems to be now:
pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h
i was wrong.
new links are for the specifications issue 7 but core.stdc API is
well complia
On Tuesday, 28 April 2015 at 02:27:00 UTC, Andre Tampubolon wrote:
I decided to wipe my dmd directory (too messy), and replaced it
with the
latest one
(http://downloads.dlang.org/releases/2.x/2.067.1/dmd.2.067.1.windows.zip).
After that, I adjusted the bin directory, and sc.ini as well:;
enviro
the following program fails because of the `put` function :
---
import std.stdio;
import std.range;
size_t readN(T, Range)(ref Range src, ref Range dst, size_t n)
if (isInputRange!Range && isOutputRange!(Range, T))
{
size_t result;
while(1)
{
if (src.empty || result == n)
On Thursday, 21 May 2015 at 10:42:34 UTC, Rikki Cattermole wrote:
On 21/05/2015 10:39 p.m., ZombineDev wrote:
Basically you need clone your fork to your computer, add a
"upstream"
remote to github.com/D-Programming-Language/[repo name, eg.
phobos],
pull from upstream the new changes and optiona
On Friday, 12 June 2015 at 12:20:58 UTC, Per Nordlöw wrote:
After having seen Andrei's & Walter's talks on DConf 2015 it's
time reveal a dream of mine. It resolves around of feature that
I believe is one of the most important improvements that will
benefit aggregation of more *new* users to the
On Friday, 12 June 2015 at 11:09:01 UTC, Dicebot wrote:
Small tip for reviewers: there are quite many modules in
proposed package but majority is actual allocator
implementation. I'd suggest to start investigating
sources/documentation starting from
http://erdani.com/d/phobos-prerelease/std_ex
On Friday, 12 June 2015 at 19:19:55 UTC, Andrei Alexandrescu
wrote:
On 6/12/15 11:23 AM, Baz wrote:
On Friday, 12 June 2015 at 11:09:01 UTC, Dicebot wrote:
Small tip for reviewers: there are quite many modules in
proposed
package but majority is actual allocator implementation. I'd
suggest
to
On Saturday, 20 June 2015 at 22:38:30 UTC, Walter Bright wrote:
https://github.com/rollbear/basicpp
This leads to this classic, the original Bourne shell ALGO-izer
macros:
http://minnie.tuhs.org/cgi-bin/utree.pl?file=2.11BSD/src/bin/sh/mac.h
On Friday, 26 June 2015 at 15:23:25 UTC, Alex Parrill wrote:
On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky wrote:
[...]
Yea, VirtualAlloc seems like a better fit. (I don't actually
know the windows API that well)
[...]
Here's the paragraph I'm reading:
Mapped views of a file
On Tuesday, 30 June 2015 at 06:07:14 UTC, Baz wrote:
On Friday, 26 June 2015 at 15:23:25 UTC, Alex Parrill wrote:
On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky
wrote:
[...]
Yea, VirtualAlloc seems like a better fit. (I don't actually
know the windows API that well)
[...]
Her
On Monday, 6 July 2015 at 13:48:53 UTC, Rikki Cattermole wrote:
So as part of my testing of std.experimental.color I began
writing an image ala ae.graphics style.
It's now ready for very initial feedback.
I don't see some things that immediatly come to my mind as
"usefull" when i think to the
On Sunday, 22 July 2018 at 12:13:43 UTC, Anonymouse wrote:
I'm hesitant to file a bug because it'll just be immediately
closed with a link to
https://dlang.org/spec/statement.html#WithStatement. I
understand that's how it works, but it's weird and weak to
human mistakes.
IMO the only reasona
46 matches
Mail list logo