On Thursday, 16 June 2016 at 14:33:07 UTC, Dechcaudron wrote:
Hey there community,
I've been using D for the last couple of months already. I
usually have to drop by the IRC to ask some fast questions and
so on, but IRC and its clients' limitations make it kind of a
pain to communicate
On Friday, 17 June 2016 at 06:30:06 UTC, Dsby wrote:
On Thursday, 16 June 2016 at 14:33:07 UTC, Dechcaudron wrote:
[...]
In China, the telegarm can not connect server. if use it, must
have a proxy.
Thank your government.
On Monday, 9 May 2016 at 08:55:36 UTC, Jonathan M Davis wrote:
But given that std.net.curl handles stuff like SSL/TLS, we
_can't_ actually replace all of its functionality - at least
not without adding a dependency on a different C library, since
there's no way that it's sane to do the crypto
On Monday, 2 May 2016 at 23:41:39 UTC, Steven Schveighoffer wrote:
On 5/2/16 6:00 PM, sigod wrote:
On Monday, 2 May 2016 at 10:15:04 UTC, Marc Schütz wrote:
On Monday, 2 May 2016 at 08:46:31 UTC, Ali Çehreli wrote:
[...]
Warning (better: disallowing altogether) about `=>` directly
followed
On Wednesday, 4 May 2016 at 04:56:54 UTC, Joel wrote:
On Sunday, 1 May 2016 at 05:42:00 UTC, Ali Çehreli wrote:
[...]
This seems to work the best:
arr.each!(a => { writeln(a); }());
And the ugliest. And probably slowest.
On Monday, 2 May 2016 at 10:15:04 UTC, Marc Schütz wrote:
On Monday, 2 May 2016 at 08:46:31 UTC, Ali Çehreli wrote:
[...]
Warning (better: disallowing altogether) about `=>` directly
followed by `{` should be enough to cover all cases. To express
that you really want a lambda returning a
On Thursday, 28 April 2016 at 14:08:26 UTC, Steven Schveighoffer
wrote:
On 4/28/16 8:56 AM, Jay Norwood wrote:
[...]
.reserve should make an improvement for large amount of
appending, since you pre-allocate the data.
[...]
How about `assumeSafeAppend`? Does it have any positive impact on
On Tuesday, 5 April 2016 at 19:43:08 UTC, jmh530 wrote:
On Tuesday, 5 April 2016 at 19:15:04 UTC, Pradeep Gowda wrote:
This is somewhat tangentially related to the announcement..
but how does one run "-vgc" switch with "dub"?
Running dmd -vgc with a project with dependencies (eg: docopt)
On Tuesday, 5 April 2016 at 22:43:05 UTC, Martin Nowak wrote:
Glad to announce D 2.071.0.
http://dlang.org/download.html
This release fixes many long-standing issues with imports and
the module
system.
See the changelog for more details.
http://dlang.org/changelog/2.071.0.html
-Martin
On Monday, 28 March 2016 at 22:35:12 UTC, Jin wrote:
On Monday, 28 March 2016 at 19:29:55 UTC, Walter Bright wrote:
On 3/28/2016 6:10 AM, Jin wrote:
My english is too bad to write articles, sorry :-(
Baloney, your english is very good. Besides, I'm sure there
will be many volunteers here to
On Thursday, 24 March 2016 at 09:54:37 UTC, _d0s_ wrote:
just found this ...
http://forum.dlang.org/thread/nilhvnqbsgqhxdshp...@forum.dlang.org
maybe that will be what i'm looking for :)
as for the web ui's ...
the performance is of course not perfect as in a native app.
but i think apps like
On Friday, 11 March 2016 at 18:45:13 UTC, Anonymouse wrote:
On Friday, 11 March 2016 at 17:33:43 UTC, sigod wrote:
On Friday, 11 March 2016 at 17:03:38 UTC, Anonymouse wrote:
On Friday, 11 March 2016 at 15:21:38 UTC, maik klein wrote:
[...]
As a drive-by comment, mind that
On Friday, 11 March 2016 at 17:03:38 UTC, Anonymouse wrote:
On Friday, 11 March 2016 at 15:21:38 UTC, maik klein wrote:
static Singleton!T get()
{
if (!instantiated_)
{
synchronized(Singleton!T.classinfo){
if (!instance_){
On Sunday, 6 March 2016 at 17:53:23 UTC, Seb wrote:
Why don't we make a Coursera (or similar) course about D? They
usually have an audience of at least 50-100K.
That's a great idea. I would love to take such course.
Video: https://www.youtube.com/watch?v=QM1iUe6IofM
Article:
https://medium.com/@brianwill/object-oriented-programming-a-personal-disaster-1b044c2383ab
Interesting talk. Especially given that my D code tends to be
structured very similarly to what Will suggests.
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote:
3. If Github goes dark, we still have our local complete copies
of the git database. If Github issues goes dark, we lose it
all. We control the Bugzilla database. This database is
ABSOLUTELY CRITICAL to D's future, and not having
On Wednesday, 2 March 2016 at 02:36:50 UTC, Charles wrote:
Watched a video on Jonathan Blow's language that he's
developing, and he has a pretty neat idea of having tools being
part of the language. Looking at the first 15
minutes(https://www.youtube.com/watch?v=OHZwYYW9koI) or so of
the
On Monday, 29 February 2016 at 15:09:56 UTC, Seb wrote:
I have started to learn D lately and as a part of my learning
process I decided to put my insights into a new, open platform
- the D Functional Garden.
It maintains a variety of snippets that can be used to learn D
or help one as a
On Monday, 29 February 2016 at 08:02:51 UTC, mahdi wrote:
On Monday, 29 February 2016 at 06:10:17 UTC, Chris Wright wrote:
[...]
The aim is to make package distribution easier and more
straightforward. If someone has done some development on his
local machine and wants to distribute it,
On Saturday, 27 February 2016 at 16:21:05 UTC, Sönke Ludwig wrote:
This is a small bugfix release that mainly fixes two critical
regressions:
- FreeListRef!T, which is used heavily in the HTTP server
code, stored
its reference count in an unallocated memory region, leading
to
On Saturday, 27 February 2016 at 23:43:07 UTC, cym13 wrote:
Could you please provide a link to said comment? Maybe some
context would help bring some sanity over this statement.
Topic:
https://www.reddit.com/r/programming/comments/30sqtd/why_didnt_the_d_language_become_mainstream_as/
Said
On Thursday, 25 February 2016 at 12:18:07 UTC, mahdi wrote:
On Thursday, 25 February 2016 at 11:50:02 UTC, sigod wrote:
On Thursday, 25 February 2016 at 10:03:08 UTC, mahdi wrote:
Thanks.
So when we define the function, we MUST specify the array
size to be able to accept a static array?
On Thursday, 25 February 2016 at 12:18:07 UTC, mahdi wrote:
On Thursday, 25 February 2016 at 11:50:02 UTC, sigod wrote:
On Thursday, 25 February 2016 at 10:03:08 UTC, mahdi wrote:
Thanks.
So when we define the function, we MUST specify the array
size to be able to accept a static array?
On Thursday, 25 February 2016 at 10:03:08 UTC, mahdi wrote:
Thanks.
So when we define the function, we MUST specify the array size
to be able to accept a static array?
Can't we just define a function which can accept any static
array with any size? (e.g. a function to calculate average of a
On Sunday, 21 February 2016 at 16:20:30 UTC, bachmeier wrote:
On Sunday, 21 February 2016 at 14:32:15 UTC, dextorious wrote:
I had heard while reading up on the language that in D
explicit loops are generally frowned upon and not necessary
for the usual performance reasons.
First, a minor
On Tuesday, 16 February 2016 at 18:30:43 UTC, Nick wrote:
Hey folks
I'm making a vibe.d application. Once a day it needs to
download some data. How do i get the program to perform this
task once a day?
Regards, Nick
You can use `Timer`. See `setTimer`/`createTimer` in
On Friday, 22 January 2016 at 04:39:00 UTC, Pradeep Gowda wrote:
Sublime text 3 is a decent editor to write D code. However,
getting all the different plugins working together has always
proven to be somewhat of a challenge for me. So, I decided to
document the process as I went along.
The
On Monday, 15 February 2016 at 03:22:44 UTC, Jon D wrote:
Is there a way to reserve capacity in associative arrays? In
some programs I've been writing I've been getting reasonable
performance up to about 10 million entries, but beyond that
performance is impacted considerably (say, 30 million
On Sunday, 14 February 2016 at 08:17:34 UTC, Sönke Ludwig wrote:
Am 11.02.2016 um 00:24 schrieb sigod:
Did some benchmarks between `std.net.curl.get` and
`vibe.http.client.requestHTTP`. Only GET requests.
100 requests, ~1.4mb file:
curl total: 131304, average: 1 sec and 313 ms
vibe
On Friday, 12 February 2016 at 20:13:16 UTC, Junfeng wrote:
a quick search, seem we should write it like:
t[] to = (cast(T*)allocator.allocate(T.sizeof * from.length))[0
.. from.length]);
but after this modify, it will crash at
to[] = from[];
Shouldn't you use [`makeArray`][0] in
On Tuesday, 9 February 2016 at 21:08:37 UTC, Brian Schott wrote:
On Wednesday, 27 January 2016 at 17:34:35 UTC, Jack Stouffer
wrote:
Sublime Text is a very popular text editor, and for a while
now it's had marginal D support. What has changed recently is
updated syntax highlighting to support
Did some benchmarks between `std.net.curl.get` and
`vibe.http.client.requestHTTP`. Only GET requests.
100 requests, ~1.4mb file:
curl total: 131304, average: 1 sec and 313 ms
vibe total: 21975, average: 219 ms
52 different files:
curl total: 24851, average: 477 ms
vibe
On Thursday, 28 January 2016 at 14:45:36 UTC, Adam D. Ruppe wrote:
On Thursday, 28 January 2016 at 14:39:46 UTC, sigod wrote:
I tried to compile your code on dpaste (2.070.0) and got this:
dpaste has an input mangling bug with some characters as a
result of the form submission over the web.
On Tuesday, 19 January 2016 at 13:22:48 UTC, beck wrote:
Do D need a popular framework?
in china ,a little peopel use dlang.
i just use it do some simple work for myself. yet,i have learn
d for a week ..
i ask so many friends ,they don't use D at all.we use golang
more than dlang.
Oh, I
On Thursday, 4 February 2016 at 00:23:07 UTC, ixid wrote:
It would be nice to have a simple writeln that adds spaces
automatically like Python's 'print' in std.stdio, perhaps
called print.
It seems Andrei decided to add such function:
On Wednesday, 3 February 2016 at 19:21:06 UTC, Meta wrote:
On Wednesday, 3 February 2016 at 18:40:27 UTC, xtreak wrote:
Thanks. I was trying to get the return type of lambdas. I was
trying the following and got an error. I was using dpaste with
dmd 2.070
writeln(ReturnType!(a =(a *a)))
On Wednesday, 3 February 2016 at 22:27:07 UTC, holo wrote:
When i start same program on server in different timezone
difference is much higher (more than hour). Why it is
happening? Timezones shouldnt have influence on such equation.
Try using `Clock.currTime(UTC())`. And make sure all
This package might be of some help to those who doesn't want to
use dev version:
https://packagecontrol.io/packages/D%20Programming%20Language
On Thursday, 28 January 2016 at 13:26:27 UTC, Andrea Fontana
wrote:
On Thursday, 28 January 2016 at 13:18:55 UTC, pineapple wrote:
I experimented with using the character 'ħ' in a variable
name, and wasn't terribly surprised when the compiler didn't
like it. What did surprise me is that I
On Thursday, 28 January 2016 at 13:36:46 UTC, Puming wrote:
I have a function that reads a line of string and do some
computation.
I searched the forum and found that people use `const(char)[]`
or `in char[]` to accept both string and char[] arguments.
What's the difference between
Here's simple code:
import std.algorithm;
import std.array;
import std.file;
void main(string[] args)
{
auto t = args[1].readText()
.splitter('\n')
.filter!(e => e.length)
Well, problem boils down to `splitter` having a greater
constraints than most functions can meet.
Thanks everyone for clarification.
P.S. Maybe I should repost my question on SO? I really thought it
was a bug, so I posted it here.
On Tuesday, 27 October 2015 at 22:33:32 UTC, Adam D. Ruppe wrote:
On Tuesday, 27 October 2015 at 22:18:55 UTC, sigod wrote:
P.S. Maybe I should repost my question on SO? I really thought
it was a bug, so I posted it here.
You could, but I'd say the same thing there
I don't expect different
On Tuesday, 27 October 2015 at 21:54:33 UTC, Jonathan M Davis
wrote:
Well, split calls splitter, and it doesn't make much of an
attempt to check its arguments in its template constraint,
mostly passing the buck onto splitter, since it's really just a
wrapper around splitter that calls array on
On Tuesday, 27 October 2015 at 21:45:10 UTC, Ali Çehreli wrote:
On 10/27/2015 01:58 PM, sigod wrote:
Here's simple code:
import std.algorithm;
import std.array;
import std.file;
void main(string[] args)
{
auto t = args[1].readText()
On Tuesday, 27 October 2015 at 22:56:07 UTC, sigod wrote:
On Tuesday, 27 October 2015 at 22:33:32 UTC, Adam D. Ruppe
wrote:
On Tuesday, 27 October 2015 at 22:18:55 UTC, sigod wrote:
P.S. Maybe I should repost my question on SO? I really
thought it was a bug, so I posted it here.
You could,
On Tuesday, 20 October 2015 at 17:01:19 UTC, karabuta wrote:
I hope I am wrong, but dlangui seems to be abandoned for some
time after all the hard work that went into it. I really like
it since it was easy to setup and get things working.
In fact, I consider it the best option.
This is
On Sunday, 18 October 2015 at 21:01:05 UTC, holo wrote:
On Sunday, 18 October 2015 at 20:12:42 UTC, sigod wrote:
[...]
I changed it to such code:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
On Sunday, 18 October 2015 at 20:05:24 UTC, holo wrote:
@sigod
Actually im working on ec2 requests. Thank you for help, it is
working right now. I don't know why i was trying "+=" before
instead of "~=". Is it good solution to make it such way?
Not really as it will trigger allocation on
On Sunday, 18 October 2015 at 18:04:53 UTC, holo wrote:
I'm trying to receive data from curl request my sample code
looks like that:
...
auto client = HTTP(endpoint ~ "?" ~
canonicalQueryString);
client.method = HTTP.Method.get;
Actual link: https://news.ycombinator.com/item?id=10136882
Consider this code:
```
struct Test
{
string to;
void test()
{
import core.time;
auto value = [to: to]; // Error: can't have associative array
of void
}
}
void main() {}
```
In 2.068.0 compilation fails. Works in 2.065 and 2.067.1.
On Wednesday, 19 August 2015 at 21:32:17 UTC, Adam D. Ruppe wrote:
On Wednesday, 19 August 2015 at 21:26:34 UTC, sigod wrote:
Consider this code:
Not a regression per se - core.time just introduced a new `to`
function that is conflicting with your variable name because
you imported
On Thursday, 12 February 2015 at 12:34:21 UTC, Vladimir Panteleev
wrote:
On Windows, if you are using the curl library included with DMD
2.066.1, curl will use the Windows certificate store.
Did this changed? I use 2.068.0 and still have problems with SSL.
Sorry for necroposting.
On Thursday, 13 August 2015 at 14:52:17 UTC, Luís Marques wrote:
More seriously, please take a look at my findSplit post please;
http://forum.dlang.org/thread/rhtjonvwgktbqvbat...@forum.dlang.org
Always provide links, please.
On Wednesday, 12 August 2015 at 15:21:28 UTC, GregoryP wrote:
I'm just wondering if, or how much of the following is possible
in some way in D:
class Foo {
int x;
sub Bar {
int x;
int getFooX(){ return super.x; }
sub FooBar {
int x;
int
On Tuesday, 11 August 2015 at 22:50:52 UTC, Clayton wrote:
Hello everyone,
Am looking for someone who could help review my code . As an
entry exercise to D am converting 3 C implementations of
popular pattern matching algorithms. The idea is to have 6
final implementations ( 3 compile-time
On Monday, 10 August 2015 at 14:27:47 UTC, Marc Schütz wrote:
On Monday, 10 August 2015 at 14:05:14 UTC, sigod wrote:
Only, why `std.digest.hmac` hasn't been included in this
release?
It's there, just the documentation is missing:
https://github.com/D-Programming-Language/phobos/pull/3543
I
On Monday, 10 August 2015 at 16:02:31 UTC, bachmeier wrote:
On Monday, 10 August 2015 at 15:05:55 UTC, sigod wrote:
I see. But it's really counter intuitive after working with
C#. Probably documentation should stress out the difference.
Thanks, Adam.
I assume you mean this page:
On Monday, 10 August 2015 at 14:05:30 UTC, Adam D. Ruppe wrote:
On Monday, 10 August 2015 at 13:57:50 UTC, sigod wrote:
[...]
It does exactly what that says: rewrites it to
(a) {
return {
writeln(a);
};
}
which is returning a delegate.
[...]
So your code passed a delegate
On Monday, 10 August 2015 at 22:21:18 UTC, 岩倉 澪 wrote:
On Saturday, 8 August 2015 at 06:24:30 UTC, sigod wrote:
Use negative value for `receiveTimeout`.
http://stackoverflow.com/q/31616339/944911
actually this no longer appears to be true?
Passing -1.msecs as the duration gives me an
On Monday, 10 August 2015 at 22:21:18 UTC, 岩倉 澪 wrote:
On Saturday, 8 August 2015 at 06:24:30 UTC, sigod wrote:
Use negative value for `receiveTimeout`.
http://stackoverflow.com/q/31616339/944911
actually this no longer appears to be true?
Passing -1.msecs as the duration gives me an
On Monday, 10 August 2015 at 22:21:18 UTC, 岩倉 澪 wrote:
On Saturday, 8 August 2015 at 06:24:30 UTC, sigod wrote:
Use negative value for `receiveTimeout`.
http://stackoverflow.com/q/31616339/944911
actually this no longer appears to be true?
Passing -1.msecs as the duration gives me an
On Monday, 10 August 2015 at 22:31:33 UTC, sigod wrote:
On Monday, 10 August 2015 at 22:21:18 UTC, 岩倉 澪 wrote:
[...]
It should be this line:
https://github.com/D-Programming-Language/phobos/blob/master/std/concurrency.d#L1910
[...]
This lines still there:
From docs:
The following part = AssignExpression is rewritten to
FunctionLiteralBody:
{ return AssignExpression ; }
So, I wonder what happens when curly braces already in place?
Consider this example:
```
import std.algorithm;
import std.stdio;
void main() {
[1,2,3,4,5]
.each!(a
On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote:
Glad to announce D 2.068.0.
http://downloads.dlang.org/releases/2.x/2.068.0/
This release comes with many rangified phobos functions, 2 new
GC profilers, a new AA implementation, and countless further
improvements and fixes.
On Saturday, 8 August 2015 at 13:42:03 UTC, John Colvin wrote:
That would be neat, but the thing is you can already do this:
auto sub = arr[idx + 123 * 10 .. $][0 .. 1];
The only argument that might hold weight is that calculating
opDollar and doing two index/slice operations might be
On Saturday, 8 August 2015 at 01:24:04 UTC, 岩倉 澪 wrote:
On Saturday, 8 August 2015 at 00:39:57 UTC, 岩倉 澪 wrote:
receiveTimeout(0.msecs,
(immutable Bar[] bar){ baz = cast(Bar[])bar;
});
Whoops, that should be:
receiveTimeout(0.msecs,
On Monday, 3 August 2015 at 22:42:15 UTC, SirNickolas wrote:
Hello! I'm new in D and it is amazing!
Can you tell me please if it is discouraged or deprecated to
call a function by just putting its name, without brackets?
It's quite unusual for me (used C++ and Python before), but I
can see
On Wednesday, 29 July 2015 at 17:04:33 UTC, Laeeth Isharc wrote:
[...]
Some JSON files can be quite large...
For example, I have a compressed 175 Gig of Reddit comments
(one file per month) I would like to work with using D, and
time + memory demands = money.
Wouldn't it be a pain not to
On Saturday, 25 July 2015 at 22:47:59 UTC, Brandon Ragland wrote:
Hi All,
Not entirely certain if there is a decent D web applications
server implementation as of yet, but if there is a project
going on, I'd love to have a gander.
On the off-chance there isn't one, who would be interested
On Saturday, 25 July 2015 at 22:40:55 UTC, Brandon Ragland wrote:
On Saturday, 25 July 2015 at 20:12:26 UTC, Andrei Alexandrescu
wrote:
On 7/25/15 1:53 PM, Johan Holmberg via Digitalmars-d wrote:
Thanks, my question seems like a carbon copy of the Stack
Overflow
article :) Somehow I had
On Saturday, 25 July 2015 at 22:47:59 UTC, Brandon Ragland wrote:
Hi All,
Not entirely certain if there is a decent D web applications
server implementation as of yet, but if there is a project
going on, I'd love to have a gander.
On the off-chance there isn't one, who would be interested
On Monday, 20 July 2015 at 04:02:04 UTC, Walter Bright wrote:
2.068 - resolve remaining regressions and release
2.069 - translate to D. No new features, no refactoring. Only
regression fixes and what's already in HEAD. This should give
us a solid baseline. It also means that open PRs that
On Monday, 20 July 2015 at 11:45:31 UTC, Gary Willoughby wrote:
On Monday, 20 July 2015 at 04:02:04 UTC, Walter Bright wrote:
Perhaps we should name this 2.100, to signify such a milestone.
2.1 Sounds good!
2.1.0 sounds even better. 2.100 - not.
But going forward can we stick to a sane
On Monday, 20 July 2015 at 14:07:12 UTC, Meta wrote:
On Monday, 20 July 2015 at 13:58:02 UTC, sigod wrote:
2.69.0 for DDMD release, then? Or does 3rd digit means PATCH
version in current versioning system?
I don't really know how the current versioning system works. I
think it just
On Monday, 20 July 2015 at 13:52:16 UTC, Meta wrote:
On Monday, 20 July 2015 at 13:16:46 UTC, sigod wrote:
On Monday, 20 July 2015 at 11:45:31 UTC, Gary Willoughby wrote:
On Monday, 20 July 2015 at 04:02:04 UTC, Walter Bright wrote:
Perhaps we should name this 2.100, to signify such a
On Monday, 20 July 2015 at 14:40:59 UTC, jmh530 wrote:
I have found the documentation for each in std.algorithm a bit
terse. It seemed like it was an eager version of map, but it
seems to be a bit more limited than that.
Why are you trying to use `each` in place which belongs to `map`?
On Friday, 17 July 2015 at 09:07:29 UTC, Jarl André Hübenthal
wrote:
But its pretty nice to know that there is laziness in D, but
when I query mongo I expect all docs to be retrieved, since
there are no paging in the underlying queries? Thus, having a
lazy functionality on top of non lazy db
On Friday, 17 July 2015 at 15:41:22 UTC, ZombineDev wrote:
eager approach, since it's more straightforward.
What makes you think it's always more straightforward? Sometimes
(like in this case with MongoDB) you cannot write eager approach
without first writing lazy one.
On Monday, 6 July 2015 at 10:20:28 UTC, anonymous wrote:
On Monday, 6 July 2015 at 07:48:17 UTC, sigod wrote:
Aren't compiler smart enough to prevent it?
```
ubyte[] test1()
{
auto b = sha1Of();
return b; // Error: escaping reference to local b
}
ubyte[] test2()
{
On Monday, 6 July 2015 at 14:56:38 UTC, Marc Schütz wrote:
On Monday, 6 July 2015 at 10:20:28 UTC, anonymous wrote:
dmd 2.068.0 catches this. You can get the beta here:
http://downloads.dlang.org/pre-releases/2.x/2.068.0/
... and it already contains a std.digest.hmac module :-)
Yes, thanks.
On Monday, 6 July 2015 at 05:30:46 UTC, thedeemon wrote:
On Sunday, 5 July 2015 at 18:57:46 UTC, sigod wrote:
Why does function return incorrect data? Using `.dup` in
return expression or using `ubyte[20]` as return type fixes
problem, but why?
Because sha1Of() returns ubyte[20], this is a
Consider this code:
```
import std.digest.digest;
import std.stdio;
ubyte[] hmac_sha1(const(ubyte)[] key, const(ubyte)[] message)
{
import std.digest.sha;
enum block_size = 64;
if (key.length block_size)
key = sha1Of(key);
if (key.length
Hi, everyone.
```
import std.typecons : Nullable;
class Test {}
Nullable!Test test;
assert(test.isNull);
```
Why does `Nullable` allowed to be used with reference types (e.g.
classes)?
P.S. I have experience with C#, where `NullableT` cannot be
used with reference types. And it sounds
On Monday, 29 June 2015 at 20:12:12 UTC, Assembly wrote:
I believe it's a design choice, if so, could someone explain
why? is immutable better than C#'s readonly so that the
readonly keyword isn't even needed? for example, I'd like to
declare a member as readonly but I can't do it directly
On Monday, 29 June 2015 at 22:22:46 UTC, anonymous wrote:
On Monday, 29 June 2015 at 22:11:16 UTC, sigod wrote:
`new immutable(MyClass)()` is invalid code.
It's perfectly fine, actually.
Yes, you're right. It seems I've mistyped `immutable` when was
checking it with compiler.
On Tuesday, 23 June 2015 at 23:52:52 UTC, Adam D. Ruppe wrote:
On Tuesday, 23 June 2015 at 23:14:13 UTC, Steven Schveighoffer
wrote:
I'm not completely sure on the syntax, try adding some parens.
Yeah, I'm pretty sure it needs to be
@(full.name.here) void foo()
Yep, something like this
On Sunday, 7 June 2015 at 15:39:17 UTC, Marc Schütz wrote:
On Sunday, 7 June 2015 at 15:17:27 UTC, 1967 wrote:
I've got a template that takes in a type. Sometimes the type
is a class, sometimes a struct, sometimes just an int. It
doesn't much matter what it is, but if it's a reference type I
Hi. I have few questions about this piece of code.
```
import vibe.data.serialization;
struct User
{
@name(_id) int id; // Error: function expected before (), not
name of type string
string name;
}
```
Is it even proper compiler behavior? Is there any way to bypass
it without using
On Tuesday, 23 June 2015 at 22:10:43 UTC, Steven Schveighoffer
wrote:
You can use @full.path.name
```
Error: unexpected ( in declarator
Error: basic type expected, not _id
Error: found '_id' when expecting ')'
Error: no identifier for declarator .data.serialization.name(int)
Error: semicolon
On Tuesday, 2 June 2015 at 16:42:43 UTC, sigod wrote:
Hi everyone. Please vote for D to be added to
https://DevDocs.io: https://trello.com/c/bCgqhZ4s/123-d
80 votes! Nice.
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev
wrote:
http://beta.forum.dlang.org/
When writing reply you click `Save and preview`:
URL changes from
http://beta.forum.dlang.org/reply/sqqngcfwtkhxeoiqn...@beta.forum.dlang.org to http://beta.forum.dlang.org/send.
As does text at
On Friday, 5 June 2015 at 01:52:07 UTC, Vladimir Panteleev wrote:
On Friday, 5 June 2015 at 01:48:20 UTC, Meta wrote:
How feasible is it to add code formatting for the web
interface?
Not sure what you mean. Do you mean syntax highlighting for D
code?
If you mean the rewrapping issues with
On Friday, 5 June 2015 at 09:53:34 UTC, Jonathan M Davis wrote:
On Friday, June 05, 2015 09:16:29 sigod via
Digitalmars-d-announce wrote:
On Friday, 5 June 2015 at 01:52:07 UTC, Vladimir Panteleev
wrote:
On Friday, 5 June 2015 at 01:48:20 UTC, Meta wrote:
How feasible is it to add code
On Friday, 5 June 2015 at 10:48:31 UTC, ketmar wrote:
On Fri, 05 Jun 2015 10:19:20 +, sigod wrote:
This just scares off users who doesn't have experience with
all this stuff. And I believe now there's much more users, who
doesn't even heard of NNTP, than whose who worked with it.
i vote
On Friday, 5 June 2015 at 10:54:03 UTC, Jonathan M Davis wrote:
On Friday, June 05, 2015 10:19:20 sigod via
Digitalmars-d-announce wrote:
Markdown in a raw format is very readable. As for me, it's
easier to read raw markdown than mix of text and code.
Perhaps, but I don't want to see raw
On Friday, 5 June 2015 at 12:57:23 UTC, Vladimir Panteleev wrote:
1. People receiving messages through NNTP/mailing lists will
not see the formatted Markdown.
That isn't a problem at all.
Although Markdown's goal is to be readable in its plain text
source code, it still allows many
On Thursday, 4 June 2015 at 20:25:02 UTC, sigod wrote:
Few issues with help dialog (opened with Shift+H):
- Centers on full page instead of only visible part of it.
- Scrolls with page.
`fixed` instead of [`absolute`][0] and it should be fixed. (Heh,
funny.)
Also, I believe closing popup on
On Thursday, 4 June 2015 at 21:32:36 UTC, Vladimir Panteleev
wrote:
Chrome weirdness. Push fixed.
Thanks. It was fast. :)
1 - 100 of 145 matches
Mail list logo