On Wednesday, 7 October 2015 at 17:13:45 UTC, Jonathan M Davis
wrote:
As I understand it, there are algorithms that inherently need 3
iterators to do whatever is they do, and the question of how to
deal with them has come up before in the newsgroup. I think
that it's pretty clear that such
On Wednesday, 7 October 2015 at 14:59:28 UTC, Trass3r wrote:
On Tuesday, 6 October 2015 at 22:39:01 UTC, Ulrich Küttler
wrote:
Yes, this is an explanation. Thanks. So the argument being C++
customs. Now that you mention it, this seems to be the
argument in Eric's D4128 paper, too.
I was
On Tuesday, 6 October 2015 at 11:30:00 UTC, Etienne Cimon wrote:
Will need to strip memutils, will you have std.allocator ready?
https://github.com/D-Programming-Language/phobos/tree/master/std/experimental/allocator
:)
On Monday, 5 October 2015 at 08:19:26 UTC, Per Nordlöw wrote:
Is there an (official or unoffical) prerelease version of the
Phobos docs, typically for studying std.allocator?
It would be nice to have the D servers auto-generate this every
time a PR is merged into druntime/phobos.
On Monday, 5 October 2015 at 09:53:09 UTC, Per Nordlöw wrote:
On Monday, 5 October 2015 at 08:45:54 UTC, John Colvin wrote:
http://dlang.org/phobos/index.html it's on the sidebar
I can't find allocator there (yet) in tree.
http://dlang.org/phobos-prerelease/std_experimental_allocator.html
On Sunday, 4 October 2015 at 15:19:21 UTC, Adam D. Ruppe wrote:
On Sunday, 4 October 2015 at 14:48:11 UTC, Jack Stouffer wrote:
Uninformed opinion: isn't there a C binding for Qt?
No, it is a pure C++ lib.
D's C++ interop is getting to the point where it is good enough
to get started with
On Sunday, 4 October 2015 at 15:45:55 UTC, Laeeth Isharc wrote:
How do I persuade partial to tie itself to the appropriate
overload?
I have:
alias
bars=partial!(slurpBars!BarType,filename,startDate,endDate);
where there are two overloads of slurpBars:
SomeBar[] slurpBars(SomeBar)(string
On Sunday, 4 October 2015 at 19:12:51 UTC, Laeeth Isharc wrote:
On Sunday, 4 October 2015 at 18:24:08 UTC, John Colvin wrote:
On Sunday, 4 October 2015 at 18:08:55 UTC, Laeeth Isharc wrote:
On Sunday, 4 October 2015 at 17:17:14 UTC, Laeeth Isharc
wrote:
On Sunday, 4 October 2015 at 16:37:34
On Sunday, 4 October 2015 at 20:26:51 UTC, John Colvin wrote:
template bish(T)
{
alias tmp = bish0!T;
alias tmp = bish1!T;
alias bish = tmp;
}
https://issues.dlang.org/show_bug.cgi?id=15156
On Sunday, 4 October 2015 at 18:08:55 UTC, Laeeth Isharc wrote:
On Sunday, 4 October 2015 at 17:17:14 UTC, Laeeth Isharc wrote:
On Sunday, 4 October 2015 at 16:37:34 UTC, John Colvin wrote:
On Sunday, 4 October 2015 at 15:45:55 UTC, Laeeth Isharc
wrote:
How do I persuade partial to tie itself
On Sunday, 4 October 2015 at 21:29:36 UTC, Jacob wrote:
On Tuesday, 29 September 2015 at 07:53:12 UTC, ponce wrote:
[...]
I was under the impression that dub was sort of the "god
particle" for building D apps. That it would take care of all
this mess. It surely doesn't and hasn't made my
On Friday, 2 October 2015 at 13:12:47 UTC, Andrei Alexandrescu
wrote:
It's been bitrotting for a while, I've rebased and it has
passed tests now. Who will do the honors?
https://github.com/D-Programming-Language/phobos/pull/3405
There are three pull requests open against my fork, I invite
On Friday, 2 October 2015 at 09:43:54 UTC, Chris wrote:
Why do I get this error msg with dmd 2.067.1 and 2.068.0 in
release mode:
$ dub --build=release
(.data._D65TypeInfo_xC3std5range10interfaces18__T10InputRangeTiZ10InputRange6__initZ+0x10):
undefined reference to
On Friday, 2 October 2015 at 08:13:00 UTC, John Colvin wrote:
On Thursday, 1 October 2015 at 22:26:39 UTC, Nordlöw wrote:
On Thursday, 1 October 2015 at 02:06:48 UTC, Fusxfaranto wrote:
[...]
Thanks!
BTW: Is there some way to turn the recursive definition of
`allSame`
template allSame(V
On Thursday, 1 October 2015 at 22:26:39 UTC, Nordlöw wrote:
On Thursday, 1 October 2015 at 02:06:48 UTC, Fusxfaranto wrote:
/** Returns: true iff all values $(D V) are the same. */
template allSame(V...) // TODO restrict to values
only
{
static if (V.length <= 1)
enum
On Thursday, 1 October 2015 at 09:59:41 UTC, Jonathan M Davis
wrote:
In almost all cases, printing out an assertion is by far the
best thing to do, and in general, the more information that's
printed, the better. But if anyone is dealing with sensitive
data, they _have_ to be smart about what
On Thursday, 1 October 2015 at 16:37:25 UTC, Zz wrote:
Hi,
When using D 2.068.2 I get the following error with some code I
have.
Assertion failure: 'minst->isRoot() || minst->rootImports()' on
line 8013 in file 'template.c'
dmd failed with exit code 1.
It work with 2.068.1.
No idea why
On Wednesday, 30 September 2015 at 17:59:41 UTC, H. S. Teoh wrote:
On Wed, Sep 30, 2015 at 04:14:59PM +, John Colvin via
Digitalmars-d wrote:
On Wednesday, 30 September 2015 at 14:53:31 UTC, H. S. Teoh
wrote:
>On Wed, Sep 30, 2015 at 08:30:47AM +0200, Jacob Carlborg via
>Digital
On Thursday, 1 October 2015 at 08:20:52 UTC, Mike Parker wrote:
What's the official way to refer to T... now? In std.meta, I
see this for AliasSeq:
/**
* Creates a sequence of zero or more aliases. This is most
commonly
* used as template parameters or arguments.
*/
This implies
On Thursday, 1 October 2015 at 07:08:00 UTC, Russel Winder wrote:
On Wed, 2015-09-30 at 23:35 -0700, Ali Çehreli via
Digitalmars-d-learn wrote:
On 09/30/2015 10:46 PM, Russel Winder via Digitalmars-d-learn
wrote:
> [...]
It's coming from the following no-message enforce():
On Wednesday, 30 September 2015 at 14:53:31 UTC, H. S. Teoh wrote:
On Wed, Sep 30, 2015 at 08:30:47AM +0200, Jacob Carlborg via
Digitalmars-d wrote:
On 2015-09-29 23:32, Andrej Mitrovic via Digitalmars-d wrote:
>If you have plaintext passwords stored anywhere you are
>already screwed. ;)
On Tuesday, 29 September 2015 at 11:40:20 UTC, Ola Fosheim
Grøstad wrote:
On Tuesday, 29 September 2015 at 09:02:13 UTC, John Colvin
wrote:
actually use the product. If you can put your theoretical mind
on hold for a few days and actually immerse yourself in the
language and its idioms
On Tuesday, 29 September 2015 at 06:16:18 UTC, Ola Fosheim
Grøstad wrote:
D2 is pretty much C++ with a Boehm collector attached to it. So
to get traction D has to improve on that model significantly OR
change direction completely.
You speak like someone who's read the spec, but doesn't
On Tuesday, 29 September 2015 at 09:53:39 UTC, Kagamin wrote:
On Tuesday, 29 September 2015 at 09:11:15 UTC, John Colvin
wrote:
Welcome to the weird and wonderful work of
http://dlang.org/expression.html#IsExpression
No, use template pattern matching instead:
struct A(int s){}
template B
On Tuesday, 29 September 2015 at 03:31:44 UTC, Nicholas Wilson
wrote:
so I have a bunch of enums (0 .. n) that i also want to
represent as flags ( 1 << n foreach n ). Is there anyway to do
this other than a string mixin?
use like:
enum blah
{
foo,
bar,
baz,
}
alias blahFlags =
On Tuesday, 29 September 2015 at 07:50:42 UTC, rumbu wrote:
Having a template:
struct SomeStruct(int size)
{
}
Is there any language trait returning the value of size
template parameter for the template instantiation SomeStruct!10?
This should do it (untested):
template SomeStructSize(T)
On Tuesday, 29 September 2015 at 21:02:42 UTC, Nordlöw wrote:
As a follow-up to
https://github.com/D-Programming-Language/phobos/pull/3207#issuecomment-144073495
I starting digging in DMD for logic controlling behaviour of
assert(), especially whether it's possible to add automatic
printing
On Tuesday, 29 September 2015 at 21:22:43 UTC, H. S. Teoh wrote:
On Tue, Sep 29, 2015 at 09:13:55PM +, John Colvin via
Digitalmars-d wrote:
On Tuesday, 29 September 2015 at 21:02:42 UTC, Nordlöw wrote:
[...]
>2. Is it possible to from within DMD generate expressions
>that do
>
On Tuesday, 29 September 2015 at 21:26:00 UTC, John Colvin wrote:
On Tuesday, 29 September 2015 at 21:22:43 UTC, H. S. Teoh wrote:
On Tue, Sep 29, 2015 at 09:13:55PM +, John Colvin via
Digitalmars-d wrote:
On Tuesday, 29 September 2015 at 21:02:42 UTC, Nordlöw wrote:
[...]
&g
On Monday, 28 September 2015 at 11:23:25 UTC, Manu wrote:
On 28 September 2015 at 09:51, Walter Bright via Digitalmars-d
wrote:
On 9/27/2015 12:54 AM, Manu via Digitalmars-d wrote:
They simply don't recognise its existence. It's a piece of
antiquated detritus,
On Monday, 28 September 2015 at 11:31:33 UTC, Russel Winder wrote:
On Sat, 2015-09-26 at 14:33 +0200, anonymous via
Digitalmars-d-learn wrote:
[…]
I'm pretty sure atomicOp is faster, though.
Rough and ready anecdotal evidence would indicate that this is
a reasonable statement, by quite a
On Monday, 28 September 2015 at 11:04:56 UTC, Russel Winder wrote:
On Sat, 2015-09-26 at 10:46 +, John Colvin via
Digitalmars-d-learn wrote:
[…]
I guess the summary is: it's a breaking change, so do it. No we
can't do that it's a breaking change.
Seems lame given all the other breaking
On Sunday, 27 September 2015 at 23:23:05 UTC, Márcio Martins
wrote:
Today I launched a very tiny and humble blog, with the first
post being about D. It's likely all posts will be about D in
the end...
[...]
this is what http://code.dlang.org/packages/gl3n does, right?
On Monday, 28 September 2015 at 12:18:28 UTC, Russel Winder wrote:
As a single data point:
== anonymous_fix.d == 5050
real0m0.168s
user0m0.200s
sys 0m0.380s
== colvin_fix.d ==
5050
real0m0.036s
user
On Monday, 28 September 2015 at 13:03:50 UTC, Adam D. Ruppe wrote:
The tip here is one I've been talking about on irc a little and
decided to write up this time. Using a mixin template to hold
the source code of a thing to be transformed is something I
think is kinda cool though I haven't
On Saturday, 26 September 2015 at 12:18:16 UTC, Zoidberg wrote:
I've run into an issue, which I guess could be resolved easily,
if I knew how...
[CODE]
ulong i = 0;
foreach (f; parallel(iota(1, 100+1)))
{
i += f;
}
thread_joinAll();
i.writeln;
[/CODE]
It's
On Saturday, 26 September 2015 at 06:28:22 UTC, Russel Winder
wrote:
On Fri, 2015-09-25 at 12:54 +, John Colvin via
Digitalmars-d-learn wrote:
[…]
I vastly prefer the UFCS version, but unfortunately reduce has
its arguments the wrong way around for that if you use the
version that takes
On Saturday, 26 September 2015 at 17:20:34 UTC, Jay Norwood wrote:
This is a work-around to get a ulong result without having the
ulong as the range variable.
ulong getTerm(int i)
{
return i;
}
auto sum4 = taskPool.reduce!"a +
b"(std.algorithm.map!getTerm(iota(11)));
or
auto
On Friday, 25 September 2015 at 15:40:54 UTC, Kagamin wrote:
On Friday, 25 September 2015 at 12:50:55 UTC, John Colvin wrote:
The complexity of the tradeoff is exactly why experienced
windows developers are necessary here. For example: any
tradeoffs I designed would likely be very far from
On Thursday, 24 September 2015 at 13:33:51 UTC, Rikki Cattermole
wrote:
On 25/09/15 1:30 AM, Edwin van Leeuwen wrote:
On Thursday, 24 September 2015 at 13:24:14 UTC, Rikki
Cattermole wrote:
Dvorm is more or less feature complete :)
I am the author of it, but unless issues come up I do not
On Friday, 25 September 2015 at 11:27:29 UTC, wobbles wrote:
On Friday, 25 September 2015 at 11:22:04 UTC, Steven
Schveighoffer wrote:
On 9/24/15 3:44 PM, Walter Bright wrote:
On 9/24/2015 6:18 AM, Rikki Cattermole wrote:
But who would be willing to make that happen.. hmm?
I've asked for it
On Friday, 25 September 2015 at 10:57:23 UTC, rumbu wrote:
On Friday, 25 September 2015 at 08:53:41 UTC, John Colvin wrote:
On Friday, 25 September 2015 at 07:26:13 UTC, rumbu wrote:
And I don't use dub, last time I checked, it's messing with
my AppData folder.
"I don't use this pr
On Friday, 25 September 2015 at 07:26:13 UTC, rumbu wrote:
On Friday, 25 September 2015 at 04:38:36 UTC, Rikki Cattermole
wrote:
On 25/09/15 4:11 PM, Sebastiaan Koppe wrote:
On Friday, 25 September 2015 at 03:00:12 UTC, Jonathan M
Davis wrote:
I do kind of wonder though what MS would do if the
On Friday, 25 September 2015 at 00:25:54 UTC, Manu wrote:
I update DMD yesterday, it couldn't work out where it was
installed and the uninstall fails, then complains and errors
when trying to install over the failed uninstall, requiring
manual intervention.
[...]
There seems to be a trend
On Friday, 25 September 2015 at 11:50:43 UTC, rumbu wrote:
On Friday, 25 September 2015 at 11:33:40 UTC, John Colvin wrote:
Fair enough, I guess this wasn't considered when dub was
designed. Have you considered making a github issue for this
(https://github.com/D-Programming-Language/dub
On Friday, 25 September 2015 at 12:17:42 UTC, Kagamin wrote:
On Friday, 25 September 2015 at 09:03:35 UTC, John Colvin wrote:
Realistically, no-one except an experienced full-time windows
developer is ever going to get this right.
It's not a simple tradeoff: Manu's usual requirement
On Friday, 25 September 2015 at 12:51:17 UTC, Russel Winder wrote:
On Fri, 2015-09-25 at 09:14 +, mzf via
Digitalmars-d-learn wrote:
[...]
Aha, bingo, spot on. Thanks. Amended now to:
double reduce_string_loop() {
return reduce!"a + 1.0 / (b * b)"(iota(1, 100));
}
On Friday, 25 September 2015 at 08:59:17 UTC, Jonathan M Davis
wrote:
On Friday, 25 September 2015 at 08:53:41 UTC, John Colvin wrote:
On Friday, 25 September 2015 at 07:26:13 UTC, rumbu wrote:
Starting Visual Studio on my machine takes 2 seconds,
What magic are you doing to achieve
On Friday, 25 September 2015 at 09:03:35 UTC, John Colvin wrote:
On Friday, 25 September 2015 at 00:25:54 UTC, Manu wrote:
[...]
There seems to be a trend here:
Windows devs have problems getting D to install/work correctly
on their machines.
Non-windows devs boot up windows and test
On Thursday, 24 September 2015 at 08:23:54 UTC, Suliman wrote:
How I can add multiple dependencies? In json I was can wrote:
dependencies": {
"dini": ">=1.0.0",
"colorize": ">=1.0.5",
"ddbc": ">=0.2.11",
}
How it will be in SDL?
On Thursday, 24 September 2015 at 09:21:06 UTC, John Colvin wrote:
On Thursday, 24 September 2015 at 08:23:54 UTC, Suliman wrote:
How I can add multiple dependencies? In json I was can wrote:
dependencies": {
"dini": ">=1.0.0",
On Thursday, 24 September 2015 at 13:36:09 UTC, Rikki Cattermole
wrote:
On 25/09/15 1:32 AM, John Colvin wrote:
On Thursday, 24 September 2015 at 13:18:28 UTC, Rikki
Cattermole wrote:
On 25/09/15 12:46 AM, Temtaime wrote:
[...]
What would be really nice is to pair up the auto tester
On Thursday, 24 September 2015 at 13:18:28 UTC, Rikki Cattermole
wrote:
On 25/09/15 12:46 AM, Temtaime wrote:
Hi all !
It's sad a little that there's no dmd's nightly builds.
Maybe we can introduce them ? It would be great to have an
ability to
download latest dmd.
What would be really
On Thursday, 24 September 2015 at 18:41:41 UTC, Laeeth Isharc
wrote:
On Thursday, 24 September 2015 at 13:44:11 UTC, John Colvin
wrote:
I guess I don't get why anyone would be interested in having
last night's build instead of the latest build.
If the latest build is broken for you, but you
On Thursday, 24 September 2015 at 15:47:45 UTC, David Nadlinger
wrote:
Hi all,
I'm not even referring to the multitude of restrictions in the
DMD frontend inliner here. When looking into the remaining
2.068 test failures for LDC, I was surprised to find out that
DMD only honors
On Wednesday, 23 September 2015 at 14:34:07 UTC, bachmeier wrote:
On Wednesday, 23 September 2015 at 05:24:05 UTC, John Colvin
wrote:
violating immutable is undefined behaviour, so the compiler is
technically speaking free to assume it never happens. At the
very least, neither snippet's
On Wednesday, 23 September 2015 at 15:09:53 UTC, Nick Sabalausky
wrote:
On 09/23/2015 08:19 AM, Russel Winder via Digitalmars-d wrote:
The most important can be paraphrased as "I had heard of D but
as it
was getting no traction, I never looked at it again."
While I agree this is something
On Wednesday, 23 September 2015 at 03:39:02 UTC, Mike Parker
wrote:
I have a situation where I would like to demonstrate violating
the contract of immutable (as an example of what not to do),
but do so without using structs or classes, just basic types
and pointers. The following snippet works
On Wednesday, 23 September 2015 at 02:10:22 UTC, Tofu Ninja wrote:
Trying to implement a bi directional range and it is slightly
unclear what the semantics are supposed to be and just wanted
some clarification.
Are bidirectional ranges supposed to be able to support
switching direction mid
On Tuesday, 22 September 2015 at 14:37:11 UTC, Russel Winder
wrote:
On Sun, 2015-09-20 at 17:47 +0200, Johannes Pfau via
Digitalmars-d -learn wrote:
[...]
[…]
[...]
Debian Jessie is far too out of date to be useful. I'm on
Debian Sid
(still quite old), and Fedora Rawhide (not quite so
On Monday, 21 September 2015 at 05:25:01 UTC, donglei wrote:
While D is binary compatible with C code, it cannot compile C
code nor C header files.
In order to use C/C++ binary libs, I have to convert C or C++
header files to D module.
It make very difficult to use C binary libs.
Can D
On Sunday, 20 September 2015 at 00:16:50 UTC, Enjoys Math wrote:
Here's my code:
https://drive.google.com/file/d/0B3LYxKGJ4ZI_MV91SkxPVVlSOW8/view?usp=sharing
I don't have access to a debugger.
Run the code for a few minutes and it tends to crash with a
core OutOfMemoryError.
Any
On Sunday, 20 September 2015 at 18:28:13 UTC, Alex Parrill wrote:
(though you can declare a variable using an AliasSeq containing
only types; I think this acts like defining one variable for
each type in the seq).
This is what is used inside std.typecons.Tuple
On Friday, 18 September 2015 at 22:54:43 UTC, Random D user wrote:
So I tried to build my project in release for the first time in
a long while. It takes like 25x longer to compile and finally
the compiler crashes. It seems to go away if I disable the
optimizer.
I get:
tym = x1d
Internal
On Saturday, 19 September 2015 at 10:45:22 UTC, Russel Winder
wrote:
Calling D from Python. I have two functions in D, compiled to a
shared object on Linux using LDC (but I get same problem using
DMD).
[...]
I heard it crashed during the talk. Bummer. I should really be
there, seeing as I
On Saturday, 19 September 2015 at 09:33:02 UTC, OlaOst wrote:
Here is a class with a templated opIndex method, and an attempt
to use it:
class Test
{
int[] numbers = [1, 2, 3];
string[] texts = ["a", "b", "c"];
Type opIndex(Type)(int index)
{
On Saturday, 19 September 2015 at 16:44:38 UTC, Rinzler wrote:
Quick point about paths and so on: if you don't understand
what's going on, or have just made a change and want to be
sure whether it worked, always open a new terminal session and
try again. There are caches that can need
On Saturday, 19 September 2015 at 16:25:28 UTC, Laeeth Isharc
wrote:
On Saturday, 19 September 2015 at 12:21:02 UTC, ponce wrote:
[...]
What is the difference between shared static this and the
global constructor ? Russell, if you use shared static this
for dmd does it work ? Laeeth.
On Saturday, 19 September 2015 at 16:15:45 UTC, Russel Winder
wrote:
Sadly the:
pragma(LDC_global_crt_ctor, 0)
void initRuntime() {
import core.runtime: Runtime;
Runtime.initialize();
}
will not compile under DMD :-(
version(LDC){ /* ... */ }
not that it helps make
On Saturday, 19 September 2015 at 15:46:32 UTC, Rinzler wrote:
On Saturday, 19 September 2015 at 15:32:33 UTC, Laeeth Isharc
wrote:
On Saturday, 19 September 2015 at 10:21:30 UTC, Rinzler wrote:
On Saturday, 19 September 2015 at 10:17:21 UTC, Jacob
Carlborg wrote:
On 2015-09-19 12:05, Rinzler
On Friday, 18 September 2015 at 12:27:37 UTC, Robert burner
Schadek wrote:
On Friday, 18 September 2015 at 12:17:25 UTC, John Colvin wrote:
That's neat, didn't know about std.exception.handle
It is at least a year old. I created it because I had a range
that threw, and there was nothing
On Friday, 18 September 2015 at 09:42:05 UTC, smadus wrote:
Ok i have rewrite :)
Now:
http://dpaste.dzfl.pl/cf8bb54b1390
The Problem is:
http://www.directupload.net/file/d/4114/9zryku49_png.htm
but i dont understand this, because, the exception should be
"Something wrong" ?!?
But, thanks
On Friday, 18 September 2015 at 11:18:33 UTC, John Colvin wrote:
On Friday, 18 September 2015 at 09:42:05 UTC, smadus wrote:
Ok i have rewrite :)
Now:
http://dpaste.dzfl.pl/cf8bb54b1390
The Problem is:
http://www.directupload.net/file/d/4114/9zryku49_png.htm
but i dont understand
On Friday, 18 September 2015 at 11:54:32 UTC, Robert burner
Schadek wrote:
On Friday, 18 September 2015 at 11:35:45 UTC, John Colvin wrote:
Posting here instead of learn because I think it uncovers a
design flaw
void main(string[] args)
{
import std.file : dirEntries, SpanMode;
import
On Friday, 18 September 2015 at 11:26:46 UTC, John Colvin wrote:
On Friday, 18 September 2015 at 11:18:33 UTC, John Colvin wrote:
On Friday, 18 September 2015 at 09:42:05 UTC, smadus wrote:
Ok i have rewrite :)
Now:
http://dpaste.dzfl.pl/cf8bb54b1390
The Problem is:
http
Posting here instead of learn because I think it uncovers a
design flaw
void main(string[] args)
{
import std.file : dirEntries, SpanMode;
import std.stdio : writeln;
foreach(file; dirEntries(args[1], SpanMode.depth))
writeln(file.name);
}
Modify this program such that it
On Friday, 18 September 2015 at 15:07:52 UTC, Rinzler wrote:
I had installed `dmd` using `brew` some time ago, and now I was
trying to use `dmd` again, but I keep getting the following
error:
`dmd: failed to launch executable at
/Library/Compilers/dmd2/osx/bin/dmd`.
Even after doing `brew
On Thursday, 17 September 2015 at 09:54:07 UTC, Chris wrote:
If I have code like this:
auto builder = appender!string;
builder ~= "Hello, World!";
builder ~= "I'm here!";
builder ~= "Now I'm there!";
the object file grows by 10-11 lines with each call to `builder
~=`. If I use this:
builder
On Thursday, 17 September 2015 at 11:47:40 UTC, Ozan wrote:
Hi!
Is it possible to read all attributes in case of overloading
functions? Example:
struct Att { string name; }
struct Att2 { string name; }
@Att void testUDA(string x) { writeln("test(string ",x,")"); }
@Att2 void testUDA(int x) {
On Thursday, 17 September 2015 at 10:53:17 UTC, Chris wrote:
On Thursday, 17 September 2015 at 10:33:44 UTC, John Colvin
wrote:
Some initial bloat is expected, format is pretty big (although
twice as big is a lot, unless your original code was quite
small?).
It was in a test program. Only
On Thursday, 17 September 2015 at 12:40:24 UTC, Ozan wrote:
On Thursday, 17 September 2015 at 12:36:42 UTC, John Colvin
wrote:
On Thursday, 17 September 2015 at 11:47:40 UTC, Ozan wrote:
...
use __traits(getAttributes, /*...*/) on each of the members of
the result of __traits(getOverloads
On Thursday, 17 September 2015 at 15:15:33 UTC, Jack Stouffer
wrote:
My dub build is failing with LDC but working with DMD. All I
get is this unhelpful error message
$ dub build --compiler=ldc2
Target derelict-util 2.0.3 is up to date. Use --force to
rebuild.
Building derelict-sdl2 1.9.7
On Thursday, 17 September 2015 at 15:47:42 UTC, Stefan Koch wrote:
On Wednesday, 16 September 2015 at 12:16:03 UTC, Bastiaan Veelo
wrote:
Sounds like you want to share this, but I can't find a
licence. In case this turns out to be useful, we would need
one :-)
If you want I can prepare a
On Thursday, 17 September 2015 at 13:42:15 UTC, Chris wrote:
On Thursday, 17 September 2015 at 12:49:03 UTC, John Colvin
wrote:
[...]
Thanks.
That's up to date enough now. Is it stable, though?
Reasonably so in my testing, but expect more bugs than in a full
release.
For version 2.067.1
On Thursday, 17 September 2015 at 16:33:12 UTC, Stefan Koch wrote:
On Thursday, 17 September 2015 at 16:02:14 UTC, John Colvin
wrote:
Yikes. Are you sure? Are you familiar with open source
licensing?
I would be open to open-source the "base" of fp.
but keeping certin extentions f
On Wednesday, 16 September 2015 at 08:28:24 UTC, NX wrote:
import std.stdio;
void main()
{
Stuff!(Thing!float) s;
writeln(typeid(s.var));
writeln(typeid(s.var.varling));
writeln(typeid(s));
}
class Stuff(T)
{
T!int var;
}
class Thing(T)
{
T
On Wednesday, 16 September 2015 at 12:55:13 UTC, smadus wrote:
Hello
Searching after hours, i give up and here is the question. ;)
I will make a programm, this searching all txt files on the
system or the path from user and searching a user tiped term in
this file.
On Wednesday, 16 September 2015 at 16:12:03 UTC, Kagamin wrote:
On Wednesday, 16 September 2015 at 13:54:36 UTC, Andrea Fontana
wrote:
I mean: to check some frequencies of common d keywords/combo
like "class", "struct", "int", "float", "if(" "while(", "(int
", "(float ", etc that are not
On Tuesday, 15 September 2015 at 16:54:22 UTC, Nordlöw wrote:
How do I check that all the elements of a std.typecons.Tuple
all fulfil a specific predicate, in my case all have a specific
type:
Something like
import std.typecons : isTuple;
enum isTupleOf(T, E) = isTuple!T &&
On Tuesday, 15 September 2015 at 09:09:00 UTC, Kagamin wrote:
On Tuesday, 15 September 2015 at 08:53:37 UTC, Fredrik Boulund
wrote:
my favourite for streaming a file:
enum chunkSize = 4096;
File(fileName).byChunk(chunkSize).map!"cast(char[])a".joiner()
Is this an efficient way of reading this
On Monday, 14 September 2015 at 23:53:16 UTC, Martin Nowak wrote:
On Monday, 14 September 2015 at 20:14:45 UTC, Jack Stouffer
wrote:
On Monday, 14 September 2015 at 17:51:59 UTC, Martin Nowak
wrote:
What platform are you on?
I'm on OS X, using the homebrew version of DMD. And homebrew
is
On Tuesday, 15 September 2015 at 08:45:00 UTC, Fredrik Boulund
wrote:
On Monday, 14 September 2015 at 15:04:12 UTC, John Colvin wrote:
[...]
Thanks for the offer, but don't go out of your way for my sake.
Maybe I'll just build this in a clean environment instead of on
my work computer
On Saturday, 12 September 2015 at 20:37:37 UTC, BBasile wrote:
UFCS is good but there are two huge problems:
- code completion in IDE. It'will never work.
- noobs, code is unreadable.
That's why I propose the new keywords 'helper' and 'subject'
that will allow to extend the properties
On Tuesday, 15 September 2015 at 13:49:04 UTC, Fredrik Boulund
wrote:
On Tuesday, 15 September 2015 at 10:01:30 UTC, John Colvin
wrote:
[...]
Nope, :(
[...]
Oh well, worth a try I guess.
On Monday, 14 September 2015 at 11:45:13 UTC, Sönke Ludwig wrote:
If no regressions show up in this RC, the final release will be
made on the upcoming Sunday. The main additions are support for
SDLang [1] package recipes [2] and a vastly improved "dub
describe".
Download:
On Tuesday, 15 September 2015 at 13:01:06 UTC, Kagamin wrote:
On Tuesday, 15 September 2015 at 09:19:29 UTC, John Colvin
wrote:
It provides you only one char at a time instead of a whole
line. It will be quite constraining for your code if not
mind-bending.
http://dlang.org/phobos
On Monday, 14 September 2015 at 14:17:51 UTC, Laeeth Isharc wrote:
chain doesn't seem to compile if I try and chain a chain of two
strings and another string.
what should I use instead?
Laeeth.
Works for me: http://dpaste.dzfl.pl/a692281f7a80
On Monday, 14 September 2015 at 13:58:33 UTC, Fredrik Boulund
wrote:
On Monday, 14 September 2015 at 13:37:18 UTC, John Colvin wrote:
On Monday, 14 September 2015 at 13:05:32 UTC, Andrea Fontana
wrote:
On Monday, 14 September 2015 at 12:30:21 UTC, Fredrik Boulund
wrote:
[...]
Also
On Monday, 14 September 2015 at 13:50:22 UTC, Fredrik Boulund
wrote:
On Monday, 14 September 2015 at 13:05:32 UTC, Andrea Fontana
wrote:
[...]
Thanks for the suggestions! I'm not too familiar with compiled
languages like this, I've mainly written small programs in D
and run them via `rdmd`
On Monday, 14 September 2015 at 14:05:01 UTC, Laeeth Isharc wrote:
On Sunday, 13 September 2015 at 17:34:11 UTC, BBasile wrote:
On Sunday, 13 September 2015 at 17:24:20 UTC, Laeeth Isharc
wrote:
[...]
can't you use 'hasMember' (either with __traits() or
std.traits.hasMember)? It's more
501 - 600 of 2625 matches
Mail list logo