bearophile wrote:
> Jonathan M Davis:
>
>> At present, I don't believe that associative arrays are valid CTFE
>
> You are wrong, the current situation with AAs is not so simple :-)
>
>
> string foo(string k) {
> string[string] map = ["bar" : "spam"];
> return map[k];
> }
> enum string v
Ellery Newcomer:
> why does the following code fail?
Reduced case for bugzilla:
import std.bigint;
void main() {
assert([BigInt(1)] == [BigInt(1)]);
}
Bye,
bearophile
Hello,
I get the above error when compiling. No idea what it means.
It happens when I add the following func:
enum XHTML_CODES = ["&":"&", "<":"<", ">":">", "\"":""",
"'":"'"];
string xhtmlEscape (in string text) {
string newText = text;
foreach (string ch, string co
If this isn't in bugzilla, please file a bug report.
http://d.puremagic.com/issues/query.cgi
On 27/11/2010 16:16, spir wrote:
Hello,
I get the above error when compiling. No idea what it means.
It happens when I add the following func:
enum XHTML_CODES = ["&":"&", "<":"<", ">":">", "\"":""",
"'":"'"];
string xhtmlEscape (in string text) {
string newText = text;
> Reduced case for bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=5281
Trass3r wrote:
If this isn't in bugzilla, please file a bug report.
http://d.puremagic.com/issues/query.cgi
It probably has the same root cause as bug 4066.
On Sat, 27 Nov 2010 18:40:34 +
Simon wrote:
> On 27/11/2010 16:16, spir wrote:
> > Hello,
> >
> > I get the above error when compiling. No idea what it means.
> > It happens when I add the following func:
> >
> > enum XHTML_CODES = ["&":"&", "<":"<", ">":">",
> > "\"":""", "'":"'"];
> >
I've just started to get organised to port my project from Windows to
Ubuntu. I see there is now a DMD for Linux which I have installed. My
question is can anyone tell me what I need to build the C libraries in
to be compatible. On Windows I had to use DMC or convert the libraries.
As there is no D
On Saturday 27 November 2010 14:04:26 Bob Cowdery wrote:
> I've just started to get organised to port my project from Windows to
> Ubuntu. I see there is now a DMD for Linux which I have installed. My
> question is can anyone tell me what I need to build the C libraries in
> to be compatible. On Wi
Hey guys,
I want encode and decode binary files like images, documents and similar file
types to use it in an binary xml. For those I created a
simple command line tool which encode or decode an file.
The encoding of files will be processed by these lines:
...
ubyte[] buffer;
buffer.length = so
On 27/11/2010 22:11, Jonathan M Davis wrote:
> On Saturday 27 November 2010 14:04:26 Bob Cowdery wrote:
>> I've just started to get organised to port my project from Windows to
>> Ubuntu. I see there is now a DMD for Linux which I have installed. My
>> question is can anyone tell me what I need to
On 27/11/10 22:04, Bob Cowdery wrote:
I've just started to get organised to port my project from Windows to
Ubuntu. I see there is now a DMD for Linux which I have installed. My
question is can anyone tell me what I need to build the C libraries in
to be compatible. On Windows I had to use DMC or
Hi,
I wonder how to solve this kind of stuff...
void foo(string[] sarray) {
// do something with sarray
}
void bar(int[] iarray) {
auto sarray = map!(to!string)(iarray);
foo(sarray);
}
And get...
foo (string[] sarray) is not callable using argument types (Map!(to,int[]))
What sho
On Saturday 27 November 2010 22:48:28 Tom wrote:
> Hi,
>
> I wonder how to solve this kind of stuff...
>
> void foo(string[] sarray) {
> // do something with sarray
> }
>
> void bar(int[] iarray) {
> auto sarray = map!(to!string)(iarray);
> foo(sarray);
> }
>
> And get...
>
> fo
15 matches
Mail list logo