On 2011-03-03 00:43, Sean Eskapp wrote:
I'm still having issues with the linux dmd. Here's the relevant part
of the output:
...
function func
function func
gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker -
L/usr/lib32 -Xlinker -L/usr/lib64 -Xlinker --no-warn-search-mismatch
-Xlink
Jesse Phillips wrote:
>I'm just wondering if anyone else has an issue with using std.zlib
>with other programs such as gzip and 7-zip? zlib creates and loads gz
>files right?
>
>The library works perfectly with itself, but I can't read or write
>compressed files from other popular programs.
>
>mpor
On 03/02/2011 11:11 PM, Peter Lundgren wrote:
> == Quote from Ali Çehreli (acehr...@yahoo.com)'s article
>> On 03/02/2011 08:56 PM, Peter Lundgren wrote:
>>> Where can I go to learn about parameterized structs? I can't seem
to find any
>>> literature on the subject. In particular, what are you al
On Wednesday 02 March 2011 22:42:18 Tom wrote:
> I have...
>
> int main(string[] args) {
> auto s1 = f(); // MH MH
> auto s2 = g(); // OK
> s2.c = null; // OK
> return 0;
> }
>
> class C {}
>
> struct StructWithConstMember {
> this(int i, C c) { this.i=i; this.c=c;
On Wed, 02 Mar 2011 13:35:11 +0100, Magnus Lie Hetland wrote:
> First question: I just noticed that writefln("%a", 1.2) writes
> 0x1.3p+0, while writeln(format("%a", 1.2)) (that is, with
> std.string.format) writes 0x9.8p-3 ... wouldn't it be nice
> to be consistent here? (
== Quote from Ali Çehreli (acehr...@yahoo.com)'s article
> On 03/02/2011 08:56 PM, Peter Lundgren wrote:
> > Where can I go to learn about parameterized structs? I can't seem to find
> > any
> > literature on the subject. In particular, what are you allowed to use as a
> > parameter? I would like
El 03/03/2011 03:47, Ali Çehreli escribió:
On 03/02/2011 10:42 PM, Tom wrote:
I have...
int main(string[] args) {
auto s1 = f(); // MH MH
auto s2 = g(); // OK
s2.c = null; // OK
return 0;
}
class C {}
struct StructWithConstMember {
this(int i, C c) { this.i=i; this.c=c; }
int i;
const(C) c;
}
On 03/02/2011 10:42 PM, Tom wrote:
I have...
int main(string[] args) {
auto s1 = f(); // MH MH
auto s2 = g(); // OK
s2.c = null; // OK
return 0;
}
class C {}
struct StructWithConstMember {
this(int i, C c) { this.i=i; this.c=c; }
int i;
const(C) c;
}
struct StructWithoutConstMember {
this(int
I have...
int main(string[] args) {
auto s1 = f(); // MH MH
auto s2 = g(); // OK
s2.c = null; // OK
return 0;
}
class C {}
struct StructWithConstMember {
this(int i, C c) { this.i=i; this.c=c; }
int i;
const(C) c;
}
struct StructWithoutCo
On 03/02/2011 08:56 PM, Peter Lundgren wrote:
Where can I go to learn about parameterized structs? I can't seem to find any
literature on the subject. In particular, what are you allowed to use as a
parameter? I would like to define a struct like so:
struct MyStruct(T, T[] a) {
...
}
but I
On 3/2/2011 8:56 PM, Peter Lundgren wrote:
Where can I go to learn about parameterized structs? I can't seem to find any
literature on the subject. In particular, what are you allowed to use as a
parameter? I would like to define a struct like so:
struct MyStruct(T, T[] a) {
...
}
but I re
On Wednesday 02 March 2011 20:56:41 Peter Lundgren wrote:
> Where can I go to learn about parameterized structs? I can't seem to find
> any literature on the subject. In particular, what are you allowed to use
> as a parameter? I would like to define a struct like so:
>
> struct MyStruct(T, T[] a)
Where can I go to learn about parameterized structs? I can't seem to find any
literature on the subject. In particular, what are you allowed to use as a
parameter? I would like to define a struct like so:
struct MyStruct(T, T[] a) {
...
}
but I receive the following error:
Error: arithmetic/
Sean Eskapp Wrote:
> I'm still having issues with the linux dmd. Here's the relevant part
> of the output:
>
> ...
> function func
> function func
> gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker -
> L/usr/lib32 -Xlinker -L/usr/lib64 -Xlinker --no-warn-search-mismatch
> -Xlinker -
I'm still having issues with the linux dmd. Here's the relevant part
of the output:
...
function func
function func
gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker -
L/usr/lib32 -Xlinker -L/usr/lib64 -Xlinker --no-warn-search-mismatch
-Xlinker --export-dynamic -lrt -lphobos2 -lpthre
== Quote from Jonathan M Davis (jmdavisp...@gmx.com)'s article
> On Wednesday, March 02, 2011 13:52:29 Sean Eskapp wrote:
> > I'm trying to work with D on Ubuntu, but I keep having this
issue:
> >
> > ...
> > function func
> > function func
> > gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l
I'm just wondering if anyone else has an issue with using std.zlib with other
programs such as gzip and 7-zip? zlib creates and loads gz files right?
The library works perfectly with itself, but I can't read or write compressed
files from other popular programs.
mport std.stdio;
import std.file
On 02/03/11 21:52, Sean Eskapp wrote:
I'm trying to work with D on Ubuntu, but I keep having this issue:
...
function func
function func
gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker
-L/usr/bin/../lib32 -Xlinker -
L/usr/bin/../lib64 -Xlinker --no-warn-search-mismatch -Xlinker -
On Wednesday, March 02, 2011 13:52:29 Sean Eskapp wrote:
> I'm trying to work with D on Ubuntu, but I keep having this issue:
>
> ...
> function func
> function func
> gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker
> -L/usr/bin/../lib32 -Xlinker - L/usr/bin/../lib64 -Xlinker
> --no
I'm trying to work with D on Ubuntu, but I keep having this issue:
...
function func
function func
gcc Nullimorphism.o -o Nullimorphism.exe -g -m32 -l -Xlinker
-L/usr/bin/../lib32 -Xlinker -
L/usr/bin/../lib64 -Xlinker --no-warn-search-mismatch -Xlinker --export-dynamic
-lrt -
lphobos2 -lpthre
El 01/03/2011 16:05, Ali Çehreli escribió:
On 02/28/2011 07:39 PM, Tom wrote:
> foo([[1,2],[3,4],[5,6]]); // ERROR [1]
> bar([[1,2],[3,4],[5,6]]); // OK
> foo!int([[1,2],[3,4],[5,6]]); // OK
...
> void foo(T)(T[2][] t) {
> writeln(typeid(t));
> }
>
> void bar(T)(T[][] t) {
> writeln(t
On 03/02/2011 01:49 AM, rm wrote:
I put together bindings for DevIL in D to use on a school assignment. The
bindings (attached) work fine on Windows, but cause a segfault on Linux when I
call ilInit.
this can be demonstrated by a little test program
"
import graphics.bindings.devil;
public vo
On 3/2/11 10:52 AM, simendsjo wrote:
I couldn't find a free download for coff2omf, that's why I don't use the
supplied .lib.
You can use coffimplib: ftp://ftp.digitalmars.com/coffimplib.zip
On 02.03.2011 18:24, Denis Koroskin wrote:
On Tue, 01 Mar 2011 23:01:21 +0300, simendsjo
wrote:
On 28.02.2011 20:24, Denis Koroskin wrote:
On Mon, 28 Feb 2011 22:04:44 +0300, simendsjo
wrote:
On 28.02.2011 18:52, simendsjo wrote:
// ERROR
auto res = mysql_library_init(0, null, null);
au
On 3/2/11 4:06 AM, bearophile wrote:
Can't D/DMD err on the side of safety and consider the C-style variadic
argument as not const, and so produce an error if you give to them something
that's D const/immutable (and require a cast there)? (Especially a function
like sscanf where the third and
On 03/02/2011 02:24 PM, Steven Schveighoffer wrote:
On Tue, 01 Mar 2011 18:11:00 -0500, bearophile wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=5678
I think there is a general bug where any time the compiler uses an enum, it
simply replaces the expression declared for the enum.
So b
On Tue, 01 Mar 2011 23:01:21 +0300, simendsjo
wrote:
On 28.02.2011 20:24, Denis Koroskin wrote:
On Mon, 28 Feb 2011 22:04:44 +0300, simendsjo
wrote:
On 28.02.2011 18:52, simendsjo wrote:
// ERROR
auto res = mysql_library_init(0, null, null);
auto cn = mysql_init(null);
auto oldcn = cn;
On Tue, 01 Mar 2011 18:11:00 -0500, bearophile
wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=5678
I think there is a general bug where any time the compiler uses an enum,
it simply replaces the expression declared for the enum.
So basically
enum TRUE = new DElement(true);
void
On 2011-03-02 09:07, Jonathan M Davis wrote:
On Tuesday 01 March 2011 23:52:38 Jacob Carlborg wrote:
On 2011-03-02 08:47, Jonathan M Davis wrote:
On Tuesday 01 March 2011 23:43:27 Jonathan M Davis wrote:
On Tuesday 01 March 2011 22:18:49 Bekenn wrote:
Code:
class MyException : Excepti
On 2011-03-01 13:20:18 +0100, Steven Schveighoffer said:
On Tue, 01 Mar 2011 07:19:21 -0500, Lars T. Kyllingstad
wrote:
On Tue, 01 Mar 2011 12:25:30 +0100, Magnus Lie Hetland wrote:
2. How can I make r.front = foo work, when I only have r.front(),
returning a ref (which seems like it is us
First question: I just noticed that writefln("%a", 1.2) writes
0x1.3p+0, while writeln(format("%a", 1.2)) (that is, with
std.string.format) writes 0x9.8p-3 ... wouldn't it be nice
to be consistent here? (The former is what printf in gcc gives.) Or am
I missing a differen
Bekenn:
> I'm not sure that's checkable. I think this falls squarely into the
> realm of "undefined behavior".
The signature of sscanf is something like:
int sscanf(char* str, char* format, ...);
Can't D/DMD err on the side of safety and consider the C-style variadic
argument as not const, and
On 02/03/2011 11:28, Simon wrote:
On 02/03/2011 08:56, Trass3r wrote:
Am 01.03.2011, 23:33 Uhr, schrieb bearophile :
Do you know why DMD doesn't give a compilation error here?
import core.stdc.stdio: sscanf;
immutable int value = 5;
void main() {
sscanf("10".ptr, "%d".ptr, &value);
}
What
On 02/03/2011 08:56, Trass3r wrote:
Am 01.03.2011, 23:33 Uhr, schrieb bearophile :
Do you know why DMD doesn't give a compilation error here?
import core.stdc.stdio: sscanf;
immutable int value = 5;
void main() {
sscanf("10".ptr, "%d".ptr, &value);
}
What's the D signature of sscanf?
voi
Assuming you've checked that dlopen isn't returning null, I can't find the
source of the error in that code, sorry.
Unsolicited advice:
Is there any reason you're manually loading the dll rather than using an
import library?
A couple of remarks about the rest of the code:
Generally in D the c
Am 01.03.2011, 23:33 Uhr, schrieb bearophile :
Do you know why DMD doesn't give a compilation error here?
import core.stdc.stdio: sscanf;
immutable int value = 5;
void main() {
sscanf("10".ptr, "%d".ptr, &value);
}
What's the D signature of sscanf?
On Wednesday 02 March 2011 00:14:55 Bekenn wrote:
> On 3/1/2011 11:47 PM, Jonathan M Davis wrote:
> > I should also point out that there is absolutely no need to use template
> > for what you're trying to do. Just declare the constructor like so:
> >
> > this(string message, string file = __FILE__
On 3/1/2011 11:47 PM, Jonathan M Davis wrote:
I should also point out that there is absolutely no need to use template for
what you're trying to do. Just declare the constructor like so:
this(string message, string file = __FILE__, size_t line = __LINE__ Throwable
next = null) { ... }
You are
On Tuesday 01 March 2011 23:52:38 Jacob Carlborg wrote:
> On 2011-03-02 08:47, Jonathan M Davis wrote:
> > On Tuesday 01 March 2011 23:43:27 Jonathan M Davis wrote:
> >> On Tuesday 01 March 2011 22:18:49 Bekenn wrote:
> >>> Code:
> >>> class MyException : Exception
> >>> {
> >>>
> >>>
39 matches
Mail list logo