Is it possible to create such an array in which you can store
strings and numbers at the same time?
string-int[] array = [4, five];
On Sun, Mar 08, 2015 at 09:29:28PM +0100, Robert M. Münch via
Digitalmars-d-learn wrote:
Hi, I just want to be sure that I'm not missing something, as I'm a
bit confused:
1. The docs at http://dlang.org/phobos/ are not complete, right? Even
not complete in that all runtime / phobos modules
On Sunday, 8 March 2015 at 15:18:25 UTC, Daniel Murphy wrote:
I would prefer long periods between host compiler version
bumps, but is building completely from source really a concern?
From a release building standpoint a new release must be
buildable with the last release. I'd even opt for
On 03/08/2015 09:08 PM, =?UTF-8?B?IlRow6lv?= Bueno\
mun...@gmx.com\ wrote:
On Saturday, 7 March 2015 at 21:14:36 UTC, Mike Wey wrote:
I'm glad to announce the first GtkD release that makes use of the new
gir based generator.
Yeah, thank you for maintaining Gtkd. It is by far the best GUI
On Sunday, 8 March 2015 at 18:05:33 UTC, Dennis Ritchie wrote:
Is it possible to create such an array in which you can store
strings and numbers at the same time?
string-int[] array = [4, five];
As there's no mention of performance, what's wrong with a plain
old string array with a bit of
On Sunday, 8 March 2015 at 20:36:34 UTC, anonymous wrote:
I get an error on your code: test.d(16): Error: static assert
(canBeAlias!(true)) is false. But when commenting out the
first assert (line 15), there's no error.
Hmm, I might have made a mistake reducing my actual code.
Played
On 3/8/2015 9:00 AM, David Nadlinger wrote:
On Sunday, 8 March 2015 at 15:18:25 UTC, Daniel Murphy wrote:
I certainly hope we aren't going to need a long daisy chain of DMD versions
in order to build DMD completely from source...
I would prefer long periods between host compiler version
On 3/8/2015 7:49 AM, Vladimir Panteleev wrote:
Congratulations are in order.
Yes.
I have a question from Digger's perspective:
Which version of DMD will be required to build DDMD?
Will DDMD code be constrained to the feature set of DMD 2.067?
Will future DMD versions promise to never
On Sunday, 8 March 2015 at 21:17:31 UTC, Meta wrote:
Urgh, I'm all messed up now. The results in the second case are
correct, but the results in the first case are wrong, as
!canBeAlias!true should be !false, not !true.
I also get the same results with __traits(compiles, { alias _ =
T[0];
On 2015-03-08 at 20:26, Meta wrote:
On Sunday, 8 March 2015 at 18:57:38 UTC, Kagamin wrote:
http://dpaste.dzfl.pl/2c8d4a7d9ef0 like this.
What in the world is that code doing? I'm having a hard time wrapping my head
around this.
It's a trick to reuse string internals to store an int.
A
On 2015-03-07 22:40:04 +, Vladimir Panteleev said:
That is one of the project's goals. digger build will default to git master.
Ok, great. I just tried it on Windows and get this here:
digger: Done installing DigitalMars C++.
digger: dmcDir=dl\dm
digger: Preparing to build...
digger:
http://dpaste.dzfl.pl/2c8d4a7d9ef0 like this.
On Saturday, 7 March 2015 at 21:14:36 UTC, Mike Wey wrote:
I'm glad to announce the first GtkD release that makes use of
the new gir based generator.
Yeah, thank you for maintaining Gtkd. It is by far the best GUI
library we have currently for D.
With the release of GTK+ 3.16 by the end of
http://pastebin.com/4TyP7Gjj
I feel like there's some sort of optimization that I can do
instead of the nWayUnion at the end I think that's a lot of
processing on a single core for the final step.
I was also trying to use
copy(array[lbound..uperbound].mergeSort, array[lbound..ubound])
On Monday, 19 January 2015 at 20:41:11 UTC, Rikki Cattermole
wrote:
On 20/01/2015 1:48 a.m., Jonas Drewsen wrote:
On Sunday, 18 January 2015 at 22:00:51 UTC, Piotrek wrote:
On Friday, 16 January 2015 at 21:19:08 UTC, Jonas Drewsen
wrote:
I have been working on an editor written in D for use
On Sunday, 8 March 2015 at 21:11:12 UTC, Meta wrote:
Yeah, definitely wrong.
template canBeAlias(T...)
if (T.length == 1)
{
static if (is(typeof({alias _ = T[0];})))
{
enum canBeAlias = true;
}
else
{
enum canBeAlias =
On 2015-03-08 21:11:42 +, Paul said:
On Sunday, 8 March 2015 at 18:05:33 UTC, Dennis Ritchie wrote:
Is it possible to create such an array in which you can store strings
and numbers at the same time?
string-int[] array = [4, five];
As there's no mention of performance, what's wrong
On Sunday, 8 March 2015 at 15:41:23 UTC, Meta wrote:
template canBeAlias(T...)
if (T.length == 1)
{
static if (is(typeof({alias _ = T[0];})))
{
enum canBeAlias = true;
}
else
{
enum canBeAlias = false;
}
}
On Sunday, 8 March 2015 at 21:18:31 UTC, Max Klyga wrote:
On 2015-03-08 21:11:42 +, Paul said:
On Sunday, 8 March 2015 at 18:05:33 UTC, Dennis Ritchie wrote:
Is it possible to create such an array in which you can store
strings and numbers at the same time?
string-int[] array = [4,
On Sunday, 8 March 2015 at 21:18:31 UTC, Max Klyga wrote:
OP is fighting a loosing battle in flame war on some obscure
forum. F# enthusiast trolls OP into solving stupid puzzles that
are trivial in F# (or any ML-family language) and clumsy in
C-family languages.
In language holy wars the
On Sun, Mar 8, 2015 at 4:36 AM, Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
On Sunday, March 08, 2015 04:13:28 Jonathan M Davis via
Digitalmars-d-learn wrote:
On Saturday, March 07, 2015 17:20:49 Timothee Cour via
Digitalmars-d-learn wrote:
To
This is normal behavior?
import std.stdio;
import std.algorithm;
void main() {
auto a = [3, 5, 8];
writeln(find(remove(a, 1), 5).length != 0); // prints false
writeln(a); // prints [3, 8, 8] ???
}
https://issues.dlang.org/show_bug.cgi?id=14260
Issue ID: 14260
Summary: std.net.curl.byLineAsync should be stoppped manually.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
https://issues.dlang.org/show_bug.cgi?id=14261
Issue ID: 14261
Summary: Struct destructors shouldn't be called when in a
closure
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.3
dfmt is a source code formatter for D. v0.1.3 fixes 34 issues
from v0.1.2.
The codename is inspired by somebody who may or may not* have
filed 45 Github issues, 20 of them in a single day.
*totally did
https://issues.dlang.org/show_bug.cgi?id=14259
Vladimir Panteleev thecybersha...@gmail.com changed:
What|Removed |Added
Keywords||pull
---
On 3/8/2015 12:51 AM, Brian Schott wrote:
dfmt is a source code formatter for D. v0.1.3 fixes 34 issues from v0.1.2.
The codename is inspired by somebody who may or may not* have filed 45 Github
issues, 20 of them in a single day.
Pretty dazz!
On Saturday, 7 March 2015 at 17:01:14 UTC, Nick Sabalausky wrote:
I haven't looked at the details, but HTML Imports sounds like
something that might have been able to fit that, but according
to that page, not only do Safari and IE not support them, but
apparently Firefox is INTENTIONALLY not
https://issues.dlang.org/show_bug.cgi?id=14255
Temtaime temta...@gmail.com changed:
What|Removed |Added
CC||temta...@gmail.com
--- Comment
https://issues.dlang.org/show_bug.cgi?id=14262
Issue ID: 14262
Summary: [REG] [2.067-b3] Can't use class `this` as ref
argument
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
On Sunday, 8 March 2015 at 21:41:44 UTC, FG wrote:
On 2015-03-08 at 20:26, Meta wrote:
On Sunday, 8 March 2015 at 18:57:38 UTC, Kagamin wrote:
http://dpaste.dzfl.pl/2c8d4a7d9ef0 like this.
What in the world is that code doing? I'm having a hard time
wrapping my head around this.
It's a
Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT
build instructions into Dub. Here is my current attempt:
{
name : foo,
description : foo,
importPaths : [ d:/workspace/dwt/imp ],
stringImportPaths : [
D:/workspace/dwt/org.eclipse.swt.win32.win32.x86/res ],
On Sunday, 8 March 2015 at 19:58:52 UTC, Walter Bright wrote:
Hmm. That does leave us with the problem of bootstrapping it on
a new platform. That would suggest constraining it to be
compilable with 2.067.
Once you fix DMD so that it can cross-compile (or use GDC/LDC),
this is no longer an
Robert M. Münch wrote in message news:mdi3sn$jh8$1...@digitalmars.com...
make -fwin32.mak C=backend TK=tk ROOT=root HOST_DC= OPT=-o DEBUG=
LFLAGS=-L/delexe/la dmd.exe
run idgen
Error: 'run' not found
dmd has very recently been changed to required dmd already installed on the
system. Until
David Nadlinger wrote in message
news:ghztksvvlcgmaoyca...@forum.dlang.org...
Once you fix DMD so that it can cross-compile (or use GDC/LDC), this is no
longer an issue. Well, if you do not have a C toolchain for
cross-compilation on your system, linking would be a bit tricky, but it
would
On 2015-03-07 15:14, Mike Wey wrote:
I'm glad to announce the first GtkD release that makes use of the new gir based
generator.
The generator was rebuild from the ground up since the old one was no longer
usable with the new GTK+ documentation.
For a list of changes see the changelog:
Walter Bright wrote in message news:mdi9ls$o10$1...@digitalmars.com...
Hmm. That does leave us with the problem of bootstrapping it on a new
platform. That would suggest constraining it to be compilable with 2.067.
If it's a new platform, why would 2.067 be able to target it?
https://issues.dlang.org/show_bug.cgi?id=14255
--- Comment #5 from yebblies yebbl...@gmail.com ---
(In reply to Temtaime from comment #4)
Can you say why there's no config files for gcc/mingw and only with dmd
there's firstly dmd.conf, then -conf flags ?
Because gcc/mingw relies on environment
On Sunday, 8 March 2015 at 21:34:25 UTC, Dennis Ritchie wrote:
This is normal behavior?
Yes it is normal, there are two potential points of confusion:
- remove mutates the input range and returns a shortened slice to
the range which excludes the removed element.
- remove takes an index as
https://issues.dlang.org/show_bug.cgi?id=14255
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
On Sunday, 8 March 2015 at 16:00:57 UTC, David Nadlinger wrote:
On Sunday, 8 March 2015 at 15:18:25 UTC, Daniel Murphy wrote:
I certainly hope we aren't going to need a long daisy chain
of DMD versions in order to build DMD completely from
source...
I would prefer long periods between host
On Sunday, 8 March 2015 at 21:58:20 UTC, safety0ff wrote:
On Sunday, 8 March 2015 at 21:34:25 UTC, Dennis Ritchie wrote:
This is normal behavior?
Yes it is normal, there are two potential points of confusion:
- remove mutates the input range and returns a shortened slice
to the range which
On 3/8/2015 3:55 PM, David Held wrote:
Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT
build instructions into Dub. Here is my current attempt:
{
name : foo,
description : foo,
importPaths : [ d:/workspace/dwt/imp ],
stringImportPaths : [
On Sunday, 8 March 2015 at 21:34:25 UTC, Dennis Ritchie wrote:
This is normal behavior?
import std.stdio;
import std.algorithm;
void main() {
auto a = [3, 5, 8];
writeln(find(remove(a, 1), 5).length != 0); // prints false
writeln(a); // prints [3, 8,
https://issues.dlang.org/show_bug.cgi?id=14255
--- Comment #2 from deadalnix deadal...@gmail.com ---
That forces to have the system's dmd, or dev's dmd to be always used with -conf
.
The default build do NOT use the flag. Meaning any use of the dev version of
dmd must use the flag (or it is
https://issues.dlang.org/show_bug.cgi?id=14255
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||yebbl...@gmail.com
--- Comment
On Sunday, March 08, 2015 14:04:52 Timothee Cour via Digitalmars-d-learn wrote:
On Sun, Mar 8, 2015 at 4:36 AM, Jonathan M Davis via Digitalmars-d-learn
I would point out though that until recently, the GC never ran the
destructors for structs on the heap, because it didn't have the type
Not a very eventful week (probably for the better, I was stuck
out of town ALL week due to a work meeting compounded with flight
cancellations getting back), we're marching toward a release.
http://arsdnet.net/this-week-in-d/mar-08.html
captaindet 2k...@gmx.net Wrote in message:
can you point me to a DL of 3.14 for windows?
I have been using msys2. The mingw-w64 ports work
well and include an x86 and x86_64 version.
jollie
On 3/8/2015 6:26 PM, Daniel Murphy wrote:
Walter Bright wrote in message news:mdiqav$17i8$1...@digitalmars.com...
On 3/8/2015 5:00 PM, Daniel Murphy wrote:
If it's a new platform, why would 2.067 be able to target it?
Because it'll have a C++ compiler.
You'd be able to compile the C++
Walter Bright wrote in message news:mdj3l3$1hup$1...@digitalmars.com...
Never needed to build a cross compiler.
You did when adding 64-bit targets. ie dmd is a 32-64 and 64-32 cross
compiler.
Anyway, in this situation:
We want to target new platform X.
Platform X has a c++ compiler but
Vladimir Panteleev wrote in message
news:sjlsydcjflglxpwus...@forum.dlang.org...
OK, then can a file please be added to the DMD source repo which indicates
which host DMD version is needed to build it?
This seems reasonable. We could also add a static assert to provide a
helpful error
On Monday, March 09, 2015 12:26:18 Daniel Murphy via Digitalmars-d wrote:
Walter Bright wrote in message news:mdiqav$17i8$1...@digitalmars.com...
On 3/8/2015 5:00 PM, Daniel Murphy wrote:
If it's a new platform, why would 2.067 be able to target it?
Because it'll have a C++ compiler.
Thanks!
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #3 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1482
-- https://issues.dlang.org/attachment.cgi?id=1482action=edit
test1 generator (100 lines of length 100)
--
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #5 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1484
-- https://issues.dlang.org/attachment.cgi?id=1484action=edit
test3 generator (100 lines of length 100)
--
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #4 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1483
-- https://issues.dlang.org/attachment.cgi?id=1483action=edit
test2 generator (1 lines of length 1)
--
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #6 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1485
-- https://issues.dlang.org/attachment.cgi?id=1485action=edit
Python2 program
--
On Sunday, 8 March 2015 at 07:02:48 UTC, Shachar Shemesh wrote:
On 07/03/15 23:44, w0rp wrote:
Why not handle the scope(failure) cases in the constructor
itself?
Because this breaks encapsulation.
struct SomeStruct {
SomeOtherStruct a;
MoreStruct b;
this(int c) {
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #8 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1487
-- https://issues.dlang.org/attachment.cgi?id=1487action=edit
readln version suggested by Daniel Kozak
(http://stackoverflow.com/a/28926137/1488799)
--
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #7 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1486
-- https://issues.dlang.org/attachment.cgi?id=1486action=edit
Original D program by Paul M
--
On Sunday, 8 March 2015 at 08:51:20 UTC, Brian Schott wrote:
https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.3
dfmt is a source code formatter for D. v0.1.3 fixes 34 issues
from v0.1.2.
The codename is inspired by somebody who may or may not* have
filed 45 Github issues, 20 of them in
https://issues.dlang.org/show_bug.cgi?id=14256
Ivan Kazmenko ga...@mail.ru changed:
What|Removed |Added
CC||ga...@mail.ru
--- Comment #2
https://issues.dlang.org/show_bug.cgi?id=14256
--- Comment #9 from Ivan Kazmenko ga...@mail.ru ---
Created attachment 1488
-- https://issues.dlang.org/attachment.cgi?id=1488action=edit
readln version suggested by Daniel Kozak
(http://stackoverflow.com/a/28926137/1488799)
--
https://issues.dlang.org/show_bug.cgi?id=14256
Ivan Kazmenko ga...@mail.ru changed:
What|Removed |Added
Attachment #1487|test_readln.d |test_read_splitLines.d
On Sunday, 8 March 2015 at 19:58:52 UTC, Walter Bright wrote:
On 3/8/2015 7:49 AM, Vladimir Panteleev wrote:
Congratulations are in order.
Yes.
I have a question from Digger's perspective:
Which version of DMD will be required to build DDMD?
Will DDMD code be constrained to the feature
On 3/8/2015 5:00 PM, Daniel Murphy wrote:
If it's a new platform, why would 2.067 be able to target it?
Because it'll have a C++ compiler.
Walter Bright wrote in message news:mdiqav$17i8$1...@digitalmars.com...
On 3/8/2015 5:00 PM, Daniel Murphy wrote:
If it's a new platform, why would 2.067 be able to target it?
Because it'll have a C++ compiler.
You'd be able to compile the C++ version of 2.067 on this platform, but
2.067
On Sunday, 8 March 2015 at 15:18:25 UTC, Daniel Murphy wrote:
I certainly hope we aren't going to need a long daisy chain of
DMD versions in order to build DMD completely from source...
I would prefer long periods between host compiler version
bumps, but is building completely from source
( Replying to
http://forum.dlang.org/post/54fb47b8.5060...@dawg.eu - sorry,
can't post to the ML right now )
First step towards self-hosting DDMD compiler.
Please update your builds scripts and setups.
https://github.com/D-Programming-Language/dmd/pull/3970
Congratulations are in order.
I
Vladimir Panteleev wrote in message
news:berkxxqbqoxzitsul...@forum.dlang.org...
Congratulations are in order.
I have a question from Digger's perspective:
Which version of DMD will be required to build DDMD?
For now, 2.067.
Will DDMD code be constrained to the feature set of DMD 2.067?
I really need to find the time to add dfmt support to Dutyl...
On 08/03/15 15:56, w0rp wrote:
So if you want something to work as of right now, do that.
I realize that. What I'm saying is that this is unacceptable. This
violates D's own standard.
From http://dlang.org/exception-safe.html:
The RAII (Resource Acquisition Is Initialization) idiom and
73 matches
Mail list logo