On 1/27/12, equi...@atw.hu equi...@atw.hu wrote:
It is not clear what you do not use xml in tango library.
I'm using D2, not D1.
There is also gdmd : dmd front end that use gdc
On 26/01/12 13:34, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can do with dmd only and visa versa?
what the feature of one of them over the other?
what the different between them in
There is also gdmd : dmd front end that use gdc
It's nothing but a perl script that translates dmd command line
options into gdc ones.
actually is a d source file that does more than a simple translation ... as dmd
On 26/01/12 13:59, Trass3r wrote:
There is also gdmd : dmd front end that use gdc
It's nothing but a perl script that translates dmd command line options into
gdc ones.
On Wed, 25 Jan 2012 23:08:01 -0500, bearophile bearophileh...@lycos.com
wrote:
In this bug report I've seen an inout struct constructor:
http://d.puremagic.com/issues/show_bug.cgi?id=7369
struct TestStruct {
this(int data) inout {}
}
Do you know what's the usage of this?
I would say
On Wed, 25 Jan 2012 19:11:36 -0500, Nicolas Silva nical.si...@gmail.com
wrote:
Hi,
I need to be sure: would the GC collect an object that is still reachable
through a void* pointer ?
No. The current GC does not know anything about type information. It
blindly assumes if a pointer
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can do with dmd only and visa
versa?
what the feature of one of them over the other?
what the different between them in term of inline assembly,
Al 26/01/12 17:15, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can do with dmd only and visa
versa?
what the feature of one of them over the other?
what the
On Thu, Jan 26, 2012 at 06:06:38PM +0100, xancorreu wrote:
[...]
I note that gdc is completely free software but dmd runtime is not.
You mean free as in freedom, not as in price.
An alternative is ldc, also free.
I looked up ldc recently, and it seems that it hasn't been updated for
years.
On 26-01-2012 18:06, xancorreu wrote:
Al 26/01/12 17:15, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can do with dmd only and visa
versa?
what the feature of one
Al 26/01/12 18:43, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 06:06:38PM +0100, xancorreu wrote:
[...]
I note that gdc is completely free software but dmd runtime is not.
You mean free as in freedom, not as in price.
Yes, both
An alternative is ldc, also free.
I looked up ldc
Al 26/01/12 19:48, En/na Alex Rønne Petersen ha escrit:
On 26-01-2012 18:06, xancorreu wrote:
Al 26/01/12 17:15, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can
I just noticed that unittests are running before static class ctors. Is
this a bug??
I suppose the intention is for unittests to make sure the class
implementation is OK before using it, but this makes it impossible to
use unittests to make sure that static ctors are setting up the initial
states
On Thursday, January 26, 2012 10:08:24 H. S. Teoh wrote:
I just noticed that unittests are running before static class ctors. Is
this a bug??
I suppose the intention is for unittests to make sure the class
implementation is OK before using it, but this makes it impossible to
use unittests
On Thu, Jan 26, 2012 at 01:10:28PM -0500, Jonathan M Davis wrote:
On Thursday, January 26, 2012 10:08:24 H. S. Teoh wrote:
I just noticed that unittests are running before static class ctors. Is
this a bug??
[...]
I would definitely think that that's a bug. If you're seeing that happen,
I'm asking questions all the time :-)
I have just closed this bug report as fixed:
http://d.puremagic.com/issues/show_bug.cgi?id=5695
Using that idiom I've seen a difference:
template TypeTuple(TList...) {
alias TList TypeTuple;
}
double f1(in double x) pure nothrow { return x; }
alias
On Thu, Jan 26, 2012 at 01:32:35PM -0500, bearophile wrote:
[...]
template TypeTuple(TList...) {
alias TList TypeTuple;
}
double f1(in double x) pure nothrow { return x; }
alias TypeTuple!(f1) funcs1;
alias TypeTuple!(function(in double x) pure nothrow { return x; }) funcs2;
void
Building gcc in general is a pain. It's just a little less painful on
*nix systems, but still painful.
I can't agree.
The build instructions contain everything. Has been straightforward for me
right from the beginning.
I looked up ldc recently, and it seems that it hasn't been updated for
years. Seems that gdc is the only other D compiler that's still actively
maintained.
Please don't spread such misinformation.
https://github.com/ldc-developers/ldc/commits/master
On Thursday, January 26, 2012 19:56:22 Trass3r wrote:
I looked up ldc recently, and it seems that it hasn't been updated for
years. Seems that gdc is the only other D compiler that's still actively
maintained.
Please don't spread such misinformation.
I just noticed that unittests are running before
static class ctors. Is
this a bug??
[...]
I would definitely think that that's a bug. If you're
seeing that happen,
please report it.
[...]
Hmm. It appears that I'm misunderstanding D syntax. What
does a static
{...} block in a
On 01/25/2012 06:35 AM, Mars wrote:
I have a few classes which I want to implement as singletons (like
configuration, database connection, etc.), because I have to access them
throughout my whole program, and from different threads.
You haven't asked, so I shouldn't be commenting on your
On 2012-01-26 10:29, Jacob Carlborg wrote:
I'm trying to port a simple example that uses Clang from C to D but for
some reason the D version results in a segmentation fault.
This is the C code:
http://pastebin.com/4B2JGz9n
This is the D code:
http://pastebin.com/XPBsSVup
The stacktrace from
On 01/26/2012 08:44 PM, Jacob Carlborg wrote:
On 2012-01-26 10:29, Jacob Carlborg wrote:
I'm trying to port a simple example that uses Clang from C to D but for
some reason the D version results in a segmentation fault.
This is the C code:
http://pastebin.com/4B2JGz9n
This is the D code:
On Thursday, 26 January 2012 at 19:13:11 UTC, Ali Çehreli wrote:
You haven't asked, so I shouldn't be commenting on your design,
but singleton is accepted as an anti-pattern for a long time
now. It is more like a solution in search of a problem. For
example, in your case, you can solve your
Hi. I am trying to write my first D program, and am quite stuck in several
areas. This is on Ubuntu 10.10 with the dmd DMD64 D Compiler v2.055.
I want to create a generic struct for multi-dimensional arrays,
in which the value parts can be shared. E.g., an array comprises
a vector of its raveled
On Thu, Jan 26, 2012 at 08:34:12PM +, Robert Bernecky wrote:
Hi. I am trying to write my first D program, and am quite stuck in several
areas. This is on Ubuntu 10.10 with the dmd DMD64 D Compiler v2.055.
[...]
However, none of this stuff works. Here's what I get:
dmd prd.d -unittest
The important mangled message here is:
prd.o:(.data+0x250): undefined reference to
`_D5Array12__ModuleInfoZ'
This is a linker error, your code compiled fine. The English
translation:
There is an undefined reference to module Array
You are compiling without including all files you need
Awesome! I feel much better now; thank you both for your instant help!
dmd prd.d Array.d -unittest
rbe@rattler:~/plural$ prd
[0]
[0, 1, 2, 3, 4]
Created int
iota shape is %d
[0]
iota value is %d
[0, 1, 2, 3, 4]
got to unittest for Array.d
[0]
[0, 1, 2, 3, 4]
Created int
[0]
[0, 1, 2, 3, 4]
On Thu, 26 Jan 2012 21:53:39 +, Robert Bernecky wrote:
Awesome! I feel much better now; thank you both for your instant help!
dmd prd.d Array.d -unittest
rbe@rattler:~/plural$ prd
[0]
[0, 1, 2, 3, 4]
Created int
iota shape is %d
[0]
iota value is %d
[0, 1, 2, 3, 4]
got to
On Thursday, 26 January 2012 at 22:10:23 UTC, Justin Whear wrote:
If you want your Array code to be a separate library/project,
you can compile it like so:
dmd Array.d -lib
Then when you compile your other project:
dmd prd.d -I/location/of/Array.d -L/location/of/Array.so
Justin
It is
Sorry I made a mistake here:
I confused gdmd with rdmd :-)
On 26/01/12 14:08, Jerome BENOIT wrote:
actually is a d source file that does more than a simple translation ... as dmd
On 26/01/12 13:59, Trass3r wrote:
There is also gdmd : dmd front end that use gdc
It's nothing but a perl
Differing part:
FNaNb xdZ d6
PFNaNbNfxdZxd6
P - pointer
Nf - @safe
x - const
The second one is a function pointer not a function, is inferred to be
@safe, and inferred to return const(double).
bearophile bearophileh...@lycos.com wrote in message
news:jfs683$2mqh$1...@digitalmars.com...
Ok thanks!
You said the current GC, do you mean that this behavior might change
in the future?
Well, first of all, what is T? If T is a class, you would not cast void * to
T*, you almost never use T* since T is already a reference. You could cast
void * to T.
I am making a sort of
http://d.puremagic.com/issues/show_bug.cgi?id=6255
--- Comment #5 from github-bugzi...@puremagic.com 2012-01-25 23:55:44 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=6255
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6255
--- Comment #6 from github-bugzi...@puremagic.com 2012-01-26 00:04:20 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=7234
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
http://d.puremagic.com/issues/show_bug.cgi?id=7295
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7296
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7231
--- Comment #1 from github-bugzi...@puremagic.com 2012-01-26 02:11:26 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=7231
--- Comment #1 from github-bugzi...@puremagic.com 2012-01-26 02:11:26 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=7231
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7356
--- Comment #5 from Kenji Hara k.hara...@gmail.com 2012-01-26 04:07:44 PST ---
(In reply to comment #2)
Some have Of, others don't. I don't see what Of adds, except verbosity.
IMHO, it comes from the typeof() feature.
First of all, and for
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-01-26 04:30:30 PST ---
My understanding is, each inout deduction from a function argument just like
pattern matching.
Parameter type: inout( int *)*
Argument type:
http://d.puremagic.com/issues/show_bug.cgi?id=7371
Summary: Associative arrays as associative array keys
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=4504
--- Comment #10 from bearophile_h...@eml.cc 2012-01-26 04:54:36 PST ---
Same bug?
import std.algorithm: map;
void foo() {
map!(x = x)([1]);
}
void main() {
int opApply(int delegate(ref int) dg) {
int result;
foo();
http://d.puremagic.com/issues/show_bug.cgi?id=4504
--- Comment #11 from bearophile_h...@eml.cc 2012-01-26 04:56:11 PST ---
Same bug?
import std.algorithm: map;
void foo() {
map!(x = x)([1]);
}
struct Bar {
int opApply(int delegate(ref int) dg) {
int result;
foo();
http://d.puremagic.com/issues/show_bug.cgi?id=5695
--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-01-26 05:05:10 PST ---
With 2.058head (f8887855), that code works correctly.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this
http://d.puremagic.com/issues/show_bug.cgi?id=7321
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||patch, rejects-valid
http://d.puremagic.com/issues/show_bug.cgi?id=7160
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
CC||tob...@pankrath.net
http://d.puremagic.com/issues/show_bug.cgi?id=7368
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7019
--- Comment #4 from Kenji Hara k.hara...@gmail.com 2012-01-26 06:24:43 PST ---
Is this a dup of 4875?
Recently Walter commented in that issue, and marked it WONTFIX.
He said:
Allowing such implicit conversions works in C++, but is considered
http://d.puremagic.com/issues/show_bug.cgi?id=4149
Leandro Lucarella leandro.lucare...@sociomantic.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7355
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7372
Summary: wrong error: undefined identifier
Product: D
Version: D1
Platform: x86
OS/Version: Linux
Status: NEW
Severity: regression
Priority: P2
Component:
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #3 from timon.g...@gmx.ch 2012-01-26 09:07:23 PST ---
(In reply to comment #2)
(In reply to comment #1)
My understanding is, each inout deduction from a function argument just like
pattern matching.
Parameter type:
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #4 from timon.g...@gmx.ch 2012-01-26 09:20:32 PST ---
(In reply to comment #1)
My understanding is, each inout deduction from a function argument just like
pattern matching.
Parameter type: inout( int *)*
Argument
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #5 from Steven Schveighoffer schvei...@yahoo.com 2012-01-26
09:36:01 PST ---
(In reply to comment #3)
The typeof resolves to error because inout resolves to immutable.
As I said, it should fail to match or match mutable and fail
http://d.puremagic.com/issues/show_bug.cgi?id=5695
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #6 from timon.g...@gmx.ch 2012-01-26 09:55:37 PST ---
(In reply to comment #5)
(In reply to comment #3)
The typeof resolves to error because inout resolves to immutable.
As I said, it should fail to match or match mutable
http://d.puremagic.com/issues/show_bug.cgi?id=7355
--- Comment #7 from Steven Schveighoffer schvei...@yahoo.com 2012-01-26
10:21:28 PST ---
(In reply to comment #6)
(In reply to comment #5)
Let's assume inout
did resolve to const for foo, and the function could be called:
immutable
http://d.puremagic.com/issues/show_bug.cgi?id=5868
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
---
http://d.puremagic.com/issues/show_bug.cgi?id=7364
Nick Treleaven ntrel-pub...@yahoo.co.uk changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7364
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7019
--- Comment #5 from Trass3r mrmoc...@gmx.de 2012-01-26 19:33:22 CET ---
I vote for doing the opposite of C++ and introducing a @implicit tag for
constructors that are to be used in the fashion I depicted.
We really need an easy way to finely
http://d.puremagic.com/issues/show_bug.cgi?id=7019
Vladimir Panteleev thecybersha...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7373
Summary: (Regression git) Renamed imports conflict with other
implicitly imported symbols
Product: D
Version: D1
Platform: x86
OS/Version: Linux
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=6738
--- Comment #3 from github-bugzi...@puremagic.com 2012-01-26 12:06:13 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=620
--- Comment #6 from github-bugzi...@puremagic.com 2012-01-26 12:06:20 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/8bc639fb00cab9002b91a1d900ddd72f56f993a4
http://d.puremagic.com/issues/show_bug.cgi?id=6780
--- Comment #2 from github-bugzi...@puremagic.com 2012-01-26 12:06:27 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=7374
Summary: stdin.byLine() throws AssertError on empty input
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=5868
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7372
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #4 from hst...@quickfur.ath.cx 2012-01-26 12:35:32 PST ---
So the right syntax is:
class A {
static {
...
static this() { ... }
...
}
}
?
Or alternatively
class A {
static { ... }
static
http://d.puremagic.com/issues/show_bug.cgi?id=5868
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=7019
mail.mantis...@gmail.com changed:
What|Removed |Added
CC||mail.mantis...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=620
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Version|0.175 |D1
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=6738
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6780
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #6 from Walter Bright bugzi...@digitalmars.com 2012-01-26
17:19:02 PST ---
I don't think there's anything wrong with the current setup.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #7 from hst...@quickfur.ath.cx 2012-01-26 17:44:20 PST ---
There's nothing technically wrong with it, but it's misleading. When you write:
class A {
int x;
this(int) { ... }
static {
int y;
this(uint) {
http://d.puremagic.com/issues/show_bug.cgi?id=5868
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5868
--- Comment #9 from bearophile_h...@eml.cc 2012-01-26 18:07:08 PST ---
(In reply to comment #7)
There's nothing technically wrong with it, but it's misleading.
I think here there's material for a diagnostic enhancement request.
(In reply to
101 - 184 of 184 matches
Mail list logo