On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote:
DMD v2.066.0-rc2 binaries are available for testing:
http://wiki.dlang.org/Beta_Testing
curl.lib not found in
dmd.2.066.0-rc2.windows.zip\dmd2\windows\lib
On 8/9/2014 10:57 AM, Dicebot wrote:
actually avoided learning anything out of the default comfort zone and
called that _professional attitude_.
People have some truly bizarre ideas about what constitutes
professionalism. At a previous job I had, at one particular developer's
meeting with
On Monday, 11 August 2014 at 15:51:16 UTC, dnewbie wrote:
On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote:
DMD v2.066.0-rc2 binaries are available for testing:
http://wiki.dlang.org/Beta_Testing
curl.lib not found in
dmd.2.066.0-rc2.windows.zip\dmd2\windows\lib
Should be
On Monday, 11 August 2014 at 19:02:18 UTC, Brad Anderson wrote:
On Monday, 11 August 2014 at 15:51:16 UTC, dnewbie wrote:
On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote:
DMD v2.066.0-rc2 binaries are available for testing:
http://wiki.dlang.org/Beta_Testing
curl.lib not
On Monday, 11 August 2014 at 16:29:10 UTC, Nick Sabalausky wrote:
On 8/9/2014 10:57 AM, Dicebot wrote:
actually avoided learning anything out of the default comfort
zone and
called that _professional attitude_.
People have some truly bizarre ideas about what constitutes
professionalism. At
On Monday, 11 August 2014 at 19:32:27 UTC, Brad Anderson wrote:
On Monday, 11 August 2014 at 19:02:18 UTC, Brad Anderson wrote:
On Monday, 11 August 2014 at 15:51:16 UTC, dnewbie wrote:
On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards
wrote:
DMD v2.066.0-rc2 binaries are available for
On Friday, 8 August 2014 at 12:01:43 UTC, Andrew Edwards wrote:
DMD v2.066.0-rc2 binaries are available for testing:
http://wiki.dlang.org/Beta_Testing
Upped https://issues.dlang.org/show_bug.cgi?id=12754 to
regression. It is causing code that used to link on mac to not
link anymore (in
Thanks; shouldn't this be a function ?
we have SysTime.toTimeVal, why not Duration.toTimeVal?
On Sun, Aug 10, 2014 at 8:40 PM, Jonathan M Davis via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On Monday, 11 August 2014 at 02:46:11 UTC, Timothee Cour via Digitalmars-d
wrote:
On Sun, Aug
On 8/10/2014 6:52 PM, Era Scarecrow wrote:
On Monday, 11 August 2014 at 00:23:36 UTC, Walter Bright wrote:
I'd suggest simply:
private alias FlagStates FS;
then use FS.def, etc.
The source code has 400 lines (955-1376) where it uses flags of one kind or
another. Constantly having to
Nice work!
Implementation is at http://dpaste.dzfl.pl/a0effbaee0a9. For
historical reasons I've reused an undocumented function
sameHead.
sameHead is documented. I already use it a couple of times.
The algorithm assumes that right is a subrange of whole
sitting at its tail, ...
sameTail
Reminder: The PR is ready for review:
https://github.com/D-Programming-Language/dlang.org/pull/623
Jonathan has summarized his position in the commments.
What do the rest of you think?
H. S. Teoh, Jakob, Ali, Marc, Dominikus, Chris -
your impression of whether this clears up the confusion would
Could one of the Wiki admins have a look, please? There is a spam
attack ongoing on wiki.dlang.org. Nothing massive, just a handful
of pages so far, but better to stop it. Thanks!
On Monday, 11 August 2014 at 07:04:42 UTC, Andrew Godfrey wrote:
Reminder: The PR is ready for review:
https://github.com/D-Programming-Language/dlang.org/pull/623
Jonathan has summarized his position in the commments.
What do the rest of you think?
H. S. Teoh, Jakob, Ali, Marc, Dominikus,
On Monday, 11 August 2014 at 06:56:52 UTC, Dragos Carp wrote:
bool sliceOf(T)(in T[] whole, in T[] slice)
{
return whole.ptr = slice.ptr
whole.ptr + slice.length = whole.ptr + slice.length;
}
Shouldn't the function arguments of sliceOf be reversed to given
a more intuitive UCFS
On Monday, 11 August 2014 at 06:29:55 UTC, Walter Bright wrote:
It's not ideal, but it gets the job done. Keep in mind that you
are proposing to use withs to mix up multiple enums with lots
of members - name clashes are very possible, and there's no
visual clue which enum a name belongs to. It
This reminds me, we still need allBefore to implement
nextPermutation correctly for bidirectional ranges.
https://issues.dlang.org/show_bug.cgi?id=12188
I think this would help here also.
On Monday, 11 August 2014 at 06:56:52 UTC, Dragos Carp wrote:
bool sliceOf(T)(in T[] whole, in T[] slice)
{
return whole.ptr = slice.ptr
whole.ptr + slice.length = whole.ptr + slice.length;
}
Correction: This is what I think you mean:
bool sliceOf(T)(in T[] part,
On Monday, 11 August 2014 at 10:09:53 UTC, Nordlöw wrote:
On Monday, 11 August 2014 at 06:56:52 UTC, Dragos Carp wrote:
bool sliceOf(T)(in T[] whole, in T[] slice)
{
return whole.ptr = slice.ptr
whole.ptr + slice.length = whole.ptr + slice.length;
}
Correction: This is what I think
Correction: This is what I think you mean:
bool sliceOf(T)(in T[] part,
in T[] whole)
{
return (whole.ptr = part.ptr
part.ptr + part.length =
whole.ptr + whole.length);
}
Yes, of course. I had lhs, rhs and messed up the renaming of
those.
On Sunday, 10 August 2014 at 10:00:45 UTC, Russel Winder via
Digitalmars-d wrote:
So if D got CSP, it would be me too but useful. If D got
dataflow it
would be D the first language to support dataflow in native
code
systems. Now that could sell.
Yes, that would be cool, but what do you mean
On 08/10/14 23:01, Era Scarecrow via Digitalmars-d wrote:
Does with have to be only for statements?
Real example. In my code somewhere i have a large list of enum types that
specify a type of formatting and visibility options.
[...]
Now since i can't use with(): I'm forced to do aliases,
On Monday, 11 August 2014 at 12:25:52 UTC, Artur Skawina via
Digitalmars-d wrote:
What you're really looking for is context dependent access to
the target scope. That would work for statics and enums, but
would probably require a new syntax (it becomes too misleading
and/or ambiguous
On Monday, 11 August 2014 at 11:00:41 UTC, Dragos Carp wrote:
https://github.com/dcarp/phobos/compare/sliceOf
Why not use something like part and whole instead of lhs
and rhs?
It is more self-documenting.
On 8/11/14, 12:29 AM, Andrei Alexandrescu wrote:
Hello,
In which algorithms would one use std::rotate?
On Mon, Aug 11, 2014 at 08:23:13AM +, via Digitalmars-d wrote:
Could one of the Wiki admins have a look, please? There is a spam
attack ongoing on wiki.dlang.org. Nothing massive, just a handful of
pages so far, but better to stop it. Thanks!
Also, looking at the recent changes log, it
On Monday, 11 August 2014 at 13:55:07 UTC, Ary Borenszweig wrote:
On 8/11/14, 12:29 AM, Andrei Alexandrescu wrote:
Hello,
In which algorithms would one use std::rotate?
http://en.wikipedia.org/wiki/Block_sort
On Monday, 11 August 2014 at 13:55:07 UTC, Ary Borenszweig wrote:
On 8/11/14, 12:29 AM, Andrei Alexandrescu wrote:
Hello,
In which algorithms would one use std::rotate?
Pushing N items to the front of a vector is implemented as
pushing N to the back then rotating them to the front.
On 8/11/14, 2:11 AM, Nordlöw wrote:
On Monday, 11 August 2014 at 06:56:52 UTC, Dragos Carp wrote:
bool sliceOf(T)(in T[] whole, in T[] slice)
{
return whole.ptr = slice.ptr
whole.ptr + slice.length = whole.ptr + slice.length;
}
Shouldn't the function arguments of sliceOf be
On 8/11/14, 6:55 AM, Ary Borenszweig wrote:
On 8/11/14, 12:29 AM, Andrei Alexandrescu wrote:
Hello,
In which algorithms would one use std::rotate?
Depends on whom you ask :o). I think it's a fairly obscure algorithm,
better suited as representative of a class rather than frequently
On Mon, 2014-08-11 at 11:02 +, via Digitalmars-d wrote:
[…]
Yes, that would be cool, but what do you mean specifically with
dataflow? Apparently it is used to describe everything from
tuple spaces to DSP engines.
I guess it is true that tuple spaces can be dataflow systems, as indeed
can
… so what's new?
I was trying to search for web-based material on D ranges and Go slices
to see if they are basically the same thing. As soon as golang is a
query term, no other language makes it onto the front page of the query
results, cf. dlang range slice golang
Google definitely try to push
https://www.google.com/search?q=dlang%20range%20slice%20golang
Did you mean: golang range slice golang
Wat!
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and Go slices
to see if they are basically the same thing. As soon as golang is a
query term, no other language makes it onto the front page of the query
On 8/11/14, 8:34 AM, Sönke Ludwig wrote:
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and Go slices
to see if they are basically the same thing. As soon as golang is a
query term, no other language
On 8/11/14, 8:23 AM, Russel Winder via Digitalmars-d wrote:
… so what's new?
I was trying to search for web-based material on D ranges and Go slices
to see if they are basically the same thing. As soon as golang is a
query term, no other language makes it onto the front page of the query
On Monday, 11 August 2014 at 15:13:43 UTC, Russel Winder via
Digitalmars-d wrote:
For me, software dataflow architecture is processes with input
channels
and output channels where the each process only computes on the
receipt
of data ready on some a combination of its inputs.
Yes, but to get
I know this is kinda nit picky but it would be nice if foreach
supported iterating through input ranges without accessing the
front function.
foreach(myInputRange) {
// myInputRange has a front function but it is
// never called because the foreach has no type list
}
One case where I
On Monday, 11 August 2014 at 15:36:12 UTC, Andrei Alexandrescu
wrote:
On 8/11/14, 8:23 AM, Russel Winder via Digitalmars-d wrote:
… so what's new?
I was trying to search for web-based material on D ranges and
Go slices
to see if they are basically the same thing. As soon as golang
is a
query
On Monday, 11 August 2014 at 15:34:30 UTC, Sönke Ludwig wrote:
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and
Go slices
to see if they are basically the same thing. As soon as golang
is a
query
On Mon, 2014-08-11 at 08:37 -0700, Andrei Alexandrescu via Digitalmars-d
wrote:
[…]
I wouldn't be surprised if there's some manual biasing at work, but I
don't think there is.
I don't think we have to consider manual biasing, I think the nature of
the algorithm automatically biases Google
On Monday, 11 August 2014 at 15:37:04 UTC, Andrei Alexandrescu
wrote:
On 8/11/14, 8:34 AM, Sönke Ludwig wrote:
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and
Go slices
to see if they are basically
On Mon, Aug 11, 2014 at 04:06:35PM +, AsmMan via Digitalmars-d wrote:
On Monday, 11 August 2014 at 15:34:30 UTC, Sönke Ludwig wrote:
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and Go
slices to
On Monday, 11 August 2014 at 15:40:18 UTC, Jonathan Marler wrote:
I know this is kinda nit picky but it would be nice if
foreach supported iterating through input ranges without
accessing the front function.
foreach(myInputRange) {
// myInputRange has a front function but it is
//
isSliceOf - yum
PR created:
https://github.com/D-Programming-Language/phobos/pull/2416
On Tuesday, 5 August 2014 at 11:00:44 UTC, Klaim - Joël Lamotte
via Digitalmars-d wrote:
Hi,
did you consider using Discourse at least as a replacement for
comments
system? http://www.discourse.org/
It's made by the guys who made stackoverflow.com and it's
useful at least
as an alternative
On 8/11/14, 9:06 AM, AsmMan wrote:
On Monday, 11 August 2014 at 15:34:30 UTC, Sönke Ludwig wrote:
Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d:
… so what's new?
I was trying to search for web-based material on D ranges and Go slices
to see if they are basically the same thing.
On 8/11/2014 9:17 AM, H. S. Teoh via Digitalmars-d wrote:
On Mon, Aug 11, 2014 at 08:23:13AM +, via Digitalmars-d wrote:
Could one of the Wiki admins have a look, please? There is a spam
attack ongoing on wiki.dlang.org. Nothing massive, just a handful of
pages so far, but better to stop
On Monday, 11 August 2014 at 14:45:09 UTC, Andrei Alexandrescu
wrote:
isSliceOf - yum
Can you elaborate on that?
On Monday, 11 August 2014 at 18:11:19 UTC, Nordlöw wrote:
On Monday, 11 August 2014 at 14:45:09 UTC, Andrei Alexandrescu
wrote:
isSliceOf - yum
Can you elaborate on that?
I get it, Andrei :)
On 8/11/14, 11:12 AM, Nordlöw wrote:
On Monday, 11 August 2014 at 18:11:19 UTC, Nordlöw wrote:
On Monday, 11 August 2014 at 14:45:09 UTC, Andrei Alexandrescu wrote:
isSliceOf - yum
Can you elaborate on that?
I get it, Andrei :)
Yah, all about making a.isSliceOf(b) a nice phrase and keeping
Shouldn't the website be upper in the rank if it was using ssl?
On Mon, Aug 11, 2014 at 7:24 PM, Andrei Alexandrescu via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 8/11/14, 9:06 AM, AsmMan wrote:
On Monday, 11 August 2014 at 15:34:30 UTC, Sönke Ludwig wrote:
Am 11.08.2014 17:23,
On Mon, 11 Aug 2014 16:23:19 +0100
Russel Winder via Digitalmars-d digitalmars-d@puremagic.com wrote:
Google definitely try to push Go :-)
so you mean that Go can't walk on it's own and needs to be constantly
pushed by Google so other people will think that it's alive? heh.
signature.asc
On Mon, 11 Aug 2014 07:04:41 +
Andrew Godfrey via Digitalmars-d digitalmars-d@puremagic.com wrote:
Jonathan is right. what this PR does is changing one (somewhat
confusing) terminology to another, even more confusing one.
signature.asc
Description: PGP signature
On Monday, 11 August 2014 at 19:43:26 UTC, ketmar via
Digitalmars-d wrote:
On Mon, 11 Aug 2014 16:23:19 +0100
Russel Winder via Digitalmars-d digitalmars-d@puremagic.com
wrote:
Google definitely try to push Go :-)
so you mean that Go can't walk on it's own and needs to be
constantly pushed
`foreach` should manage it's own iterator's resources - it
shouldn't rely on some memory declared outside it's scope
that'll be accessible after the loop is finished. You can
You say `foreach` should manage it's own iterator's resources but
why? The std.stdio function byChunk allows you to
On Mon, 11 Aug 2014 19:57:47 +
Era Scarecrow via Digitalmars-d digitalmars-d@puremagic.com wrote:
Honestly Go looks like an _interesting_ language
i'm agree. it just don't fit for me.
but I already love D and want it over C++.
same for me too. back in D1 times i was not really impressed.
Am 11.08.2014 19:40, schrieb ketmar via Digitalmars-d:
On Mon, 11 Aug 2014 16:23:19 +0100
Russel Winder via Digitalmars-d digitalmars-d@puremagic.com wrote:
Google definitely try to push Go :-)
so you mean that Go can't walk on it's own and needs to be constantly
pushed by Google so other
On Monday, 11 August 2014 at 00:52:00 UTC, Timothee Cour via
Digitalmars-d wrote:
doesn't it's not useful:
http://codervil.blogspot.com/2012/11/how-to-outperform-stdvector-in-1-easy.html
and this was meant to be used in C++.
Yeah, it's one of the shortcomings of C++ and it would be
So, a recent Phobos deprecation introduced a fun regression:
https://issues.dlang.org/show_bug.cgi?id=13257
While the bug was filed specifically for the use case
range.splitter.map, the problem is actually much more general, and far
from obvious how to address.
First, let's consider the
On Saturday, 9 August 2014 at 15:46:27 UTC, Mehrdad wrote:
On Saturday, 9 August 2014 at 13:29:47 UTC, Anonymouse wrote:
There is no realloc, move, cpy ?
Not sure what you mean by move or copy (can't you just use
regular memmove/memcpy?) but no, there is no realloc -- C++
doesn't use
On Monday, 11 August 2014 at 23:10:14 UTC, Klaus wrote:
Those functions are part of the memory manager (MM). Some MM
have higly optimized memory copy operation (i.e realloc: if the
source is overlapped with the dest...using SSE or MMX
registers... etc).
I've tried using some of them
On Mon, 11 Aug 2014 15:57:50 -0700
H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote:
seems that such deprecations hits even rdmd: trying to compile it now
spits two warnings about std.algorithm.splitter cannot be iterated
backwards.
signature.asc
Description: PGP signature
On Tue, Aug 12, 2014 at 02:38:24AM +0300, ketmar via Digitalmars-d wrote:
On Mon, 11 Aug 2014 15:57:50 -0700
H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote:
seems that such deprecations hits even rdmd: trying to compile it now
spits two warnings about std.algorithm.splitter
On Monday, 11 August 2014 at 23:45:27 UTC, H. S. Teoh via
Digitalmars-d wrote:
On Tue, Aug 12, 2014 at 02:38:24AM +0300, ketmar via
Digitalmars-d wrote:
On Mon, 11 Aug 2014 15:57:50 -0700
H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com
wrote:
seems that such deprecations hits even
On Tue, Aug 12, 2014 at 12:18:26AM +, Meta via Digitalmars-d wrote:
[...]
What about modifying is(typeof(...)) to return false for deprecated
symbols?
Wouldn't that break deprecated code? If the user compiles with -d, then
deprecated code should compile, but with this change, it may not.
Hello, got a question today from a user - is there an LDAP library for
D? Thanks! -- Andrei
On Mon, 11 Aug 2014 17:30:42 -0700
H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote:
One possible hack is to make is(typeof(...)) return true for
deprecated symbols if compiling with -d, but that would mean changing
language semantics with compiler flags, which Walter frowns on.
On Tue, 12 Aug 2014 00:18:26 +
Meta via Digitalmars-d digitalmars-d@puremagic.com wrote:
What about modifying is(typeof(...)) to return false for
deprecated symbols?
btw, we can add 'date' arg do deprecated(), so compiler will spit
warnings before that date and rejects deprecated code
On Monday, 11 August 2014 at 06:01:36 UTC, Timothee Cour via
Digitalmars-d wrote:
Thanks; shouldn't this be a function ?
we have SysTime.toTimeVal, why not Duration.toTimeVal?
It was quite a while ago that SysTime was created, so I don't
know exactly what my thinking was at the time, but I
On Tuesday, 12 August 2014 at 00:47:20 UTC, ketmar via
Digitalmars-d wrote:
On Tue, 12 Aug 2014 00:18:26 +
Meta via Digitalmars-d digitalmars-d@puremagic.com wrote:
What about modifying is(typeof(...)) to return false for
deprecated symbols?
btw, we can add 'date' arg do deprecated(), so
On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei Alexandrescu
wrote:
Hello, got a question today from a user - is there an LDAP
library for D? Thanks! -- Andrei
There is a raw binding to openldap c library.
http://d.darktech.org/bindings/ldap.zip
On Monday, 11 August 2014 at 23:10:14 UTC, Klaus wrote:
Those functions are part of the memory manager (MM). Some MM
have higly optimized memory copy operation (i.e realloc: if the
source is overlapped with the dest...using SSE or MMX
registers... etc).
Hmm I don't get what they have to do
On Sunday, 10 August 2014 at 02:40:31 UTC, Ola Fosheim Grøstad
wrote:
Of course it does, that is why Hoare Logic and SSA exist.
Deduction lacks a notion of time.
Logic is ordered, and we have a notion of order because we know
time, which is the only obviously ordered thing in nature. So in
a
On Tuesday, 12 August 2014 at 04:50:15 UTC, Kagamin wrote:
Logic is ordered, and we have a notion of order because we know
time, which is the only obviously ordered thing in nature. So
in a sense any logic has time in its foundation and math can do
the reverse: represent time in declarative
On Mon, 11 Aug 2014 05:18:59 +
Jeremy DeHaan via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
why do you need that info? D types has well-defined sizes (i.e uint is
always 32 bits, and so on).
you still can check pointer size -- (void *).sizeof. but i'm pretty
sure that you
On 11/08/14 07:18, Jeremy DeHaan wrote:
I am looking at these versions as described here:
http://dlang.org/version.html
There are X86 and X86_64 version identifiers, but these specifically
mention that they are versions for the processor type. Can they also be
used to determine if the OS is
On Monday, 11 August 2014 at 05:19:01 UTC, Jeremy DeHaan wrote:
I am looking at these versions as described here:
http://dlang.org/version.html
There are X86 and X86_64 version identifiers, but these
specifically mention that they are versions for the processor
type. Can they also be used to
On Monday, 11 August 2014 at 07:58:15 UTC, Freddy wrote:
If you want to check if
the target OS(not your code) is running 32 vs 64 bit you have
to do system call for your target OS.
Not the OS, but a special CPU instruction: isX86_64() in
core.cpuid?
can someone talk me through the reasoning behind this:
import std.typetuple;
void foo(T)(T v){}
void foo(){}
version(ThisCompiles)
{
alias Parent = TypeTuple!(__traits(parent, foo))[0];
pragma(msg, __traits(getOverloads, Parent, foo));
// tuple()
}
else
{
alias Parent =
Is there a way to separately stringify/print the mantissa and
exponent of a floating point?
I want this in my pretty-printing module to produce something like
1.2 \cdot 10^3
instead of
1.2e3
I could of course always split on the e but that is kind of
non-elegant, I believe.
On Wednesday, 25 April 2012 at 21:43:11 UTC, Dmitry Olshansky
wrote:
On 25.04.2012 23:08, H. S. Teoh wrote:
Does std.regex support input ranges to match()? Or do I need
to convert
to string first?
For now, yes you have to convert them. Any random access range
of code units should do the
Here's my current try:
string toMathML(T)(T x) @trusted /** pure */ if
(isFloatingPoint!T)
{
import std.conv: to;
import std.algorithm: findSplit; //
immutable parts = to!string(x).findSplit(e);
if (parts[2].length == 0)
return parts[0];
else
return parts[0]
On Mon, 11 Aug 2014 13:47:13 +, Nordlöw wrote:
Is there a way to separately stringify/print the mantissa and exponent
of a floating point?
I want this in my pretty-printing module to produce something like
1.2 \cdot 10^3
instead of
1.2e3
I could of course always split on the
On Monday, 11 August 2014 at 14:15:05 UTC, Nordlöw wrote:
Here's my current try:
string toMathML(T)(T x) @trusted /** pure */ if
(isFloatingPoint!T)
{
import std.conv: to;
import std.algorithm: findSplit; //
immutable parts = to!string(x).findSplit(e);
if (parts[2].length ==
On Mon, 11 Aug 2014 12:51:40 +
via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
Not the OS, but a special CPU instruction: isX86_64() in
core.cpuid?
but there is ARM64 coming. and gdc, for example, will has no problems
to support it out of the box due to using gcc cogegen.
Just for a bit a fun i've implemented a simple doubly linked list
and trying out some range based stuff. Whilst doing so i have
some questions which you guys might be able to answer.
1. In your opinion when accessing the elements of a linked list
should they yield the data stored within the
On Mon, Aug 11, 2014 at 05:51:11PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
Just for a bit a fun i've implemented a simple doubly linked list and
trying out some range based stuff. Whilst doing so i have some
questions which you guys might be able to answer.
1. In your opinion
Hi, I try to get why the last way of generating an interface
implementation fails. I've put assumptions: is it right ?
---
module itfgen;
import std.stdio;
interface itf{
void a_int(int p);
void a_uint(uint p);
}
template genimpl(T){
char[] genimpl(){
On Monday, 11 August 2014 at 18:20:51 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
If you make your linked list container the same thing as a
range over it, then iterating over the range will empty the
container as
well, which generally isn't what you want.
Yes but only if it's been
I mean when writing a D lexer, you necessarly reach the moment
when you think:
Oh no! is this feature just here to suck ?
On Mon, Aug 11, 2014 at 07:35:04PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
On Monday, 11 August 2014 at 18:20:51 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
If you make your linked list container the same thing as a range over
it, then iterating over the range will empty the
On Mon, Aug 11, 2014 at 07:47:44PM +, Klaus via Digitalmars-d-learn wrote:
I mean when writing a D lexer, you necessarly reach the moment when
you think:
Oh no! is this feature just here to suck ?
I use heredocs every now and then when I need to embed long strings in
my program. It's one
On Monday, 11 August 2014 at 20:02:38 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Mon, Aug 11, 2014 at 07:35:04PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
On Monday, 11 August 2014 at 18:20:51 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
If you make your linked list
On Mon, Aug 11, 2014 at 08:22:11PM +, Gary Willoughby via
Digitalmars-d-learn wrote:
[...]
That..is..awesome! and much more simpler than i thought. I get it now,
thanks. Is this pattern repeated in phobos?
This is essentially what byKey and byValue of the built-in associative
arrays do.
On Mon, Aug 11, 2014 at 10:09 PM, H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
On Mon, Aug 11, 2014 at 07:47:44PM +, Klaus via Digitalmars-d-learn wrote:
I mean when writing a D lexer, you necessarly reach the moment when
you think:
Oh no! is this feature
On Mon, Aug 11, 2014 at 10:50:34PM +0200, Philippe Sigaud via
Digitalmars-d-learn wrote:
On Mon, Aug 11, 2014 at 10:09 PM, H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
On Mon, Aug 11, 2014 at 07:47:44PM +, Klaus via Digitalmars-d-learn
wrote:
I mean
On Monday, 11 August 2014 at 20:10:47 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Mon, Aug 11, 2014 at 07:47:44PM +, Klaus via
Digitalmars-d-learn wrote:
I mean when writing a D lexer, you necessarly reach the moment
when
you think:
Oh no! is this feature just here to suck ?
I use
On Mon, Aug 11, 2014 at 10:58 PM, H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
In Flex, one way you can implement heredocs is to have a separate mode
where the lexer is scanning for the ending string. So basically you
have a sub-lexer that treats the heredoc as
On Monday, 11 August 2014 at 15:37:29 UTC, Dominikus Dittes
Scherkl wrote:
Should be patrs[1], he?
No, parts[1] contains a slice to the e separating the mantissa
from the exponent.
On Monday, 11 August 2014 at 15:30:30 UTC, Justin Whear wrote:
1. http://dlang.org/phobos/std_bitmanip.html#.FloatRep
Great! Thx.
1 - 100 of 150 matches
Mail list logo