Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Sam Hu
Richard Webb Wrote: > The Juno library has a 'uuid' that works like that, and the posted example > seems > to build ok here using DMD 1.062. > > Theres also a Tango version of the same code in the dwin library, but i > haven't > tried that for ages. Thank you both for the reply.Sorry for the la

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Richard Webb
The Juno library has a 'uuid' that works like that, and the posted example seems to build ok here using DMD 1.062. Theres also a Tango version of the same code in the dwin library, but i haven't tried that for ages.

Re: Doubled newlines

2010-08-03 Thread dcoder
== Quote from bearophile (bearophileh...@lycos.com)'s article > I think there is a bug here, but can you please try it a bit? > The name of this program is "test.d", so it loads its souce code: > import std.file: readText; > import std.stdio: write; > void main() { > string s = readText("test.d

Re: running pure functions in parallel

2010-08-03 Thread Simen kjaeraas
Justin wrote: I'm designing an application which needs to process a lot of data as quickly as possible. I've found that I can engineer the processing algorithms into pure functions which can operate on different segments of my data. I would like to run these functions in parallel but: sp

Re: various questions

2010-08-03 Thread Rory Mcguire
Jason Spencer wrote: > == Quote from Rory Mcguire (rjmcgu...@gm_no_ail.com)'s article >> Jason Spencer wrote: >> > == Quote from Rory Mcguire (rjmcgu...@gm_no_ail.com)'s article >> >> Jason Spencer wrote: >> > >> >> > I nievely went and replaced "foreach (t; > Iota!(str_types.length))" >> >> > wit

running pure functions in parallel

2010-08-03 Thread Justin
I'm designing an application which needs to process a lot of data as quickly as possible. I've found that I can engineer the processing algorithms into pure functions which can operate on different segments of my data. I would like to run these functions in parallel but: spawn() precludes returnin

Re: cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Gareth Charnock
On 03/08/10 15:19, Sam Hu wrote: Base on D1: interface IADsPropertyEntry : IDispatch { mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")); ... Error when compile: argument to mixin must be a string,not mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")) cannot evaluate uuid("05792c8e-941f

cannot evalute mixin(uuid("bla")) at compile time

2010-08-03 Thread Sam Hu
Base on D1: interface IADsPropertyEntry : IDispatch { mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")); ... Error when compile: argument to mixin must be a string,not mixin(uuid("05792c8e-941f-11d0-8529-00c04fd8d503")) cannot evaluate uuid("05792c8e-941f-11d0-8529-00c04fd8d503")

Re: xfbuild, optlink and pragma(lib)

2010-08-03 Thread Trass3r
run it. Factored out it's the call to SDL_Init(). Is it because of the conversion (COFF -> ELF -> OMF; COFF -> OMF wasn't possible) or because of my wrong prototype export extern(C) { int SDL_Init(Uint32 flags); } BTW what does a Acces Violation mean? Yep, unfortunately the objconv doesn't

Re: xfbuild, optlink and pragma(lib)

2010-08-03 Thread Mafi
Am 02.08.2010 16:19, schrieb Trass3r: [1] http://www.digitalmars.com/ctg/coff2omf.html [2] http://www.digitalmars.com/download/freecompiler.html The tool sounds cool but it seems that I have to buy it, so that's no option for me. Yeah, it's a pity that such an important tool for D development

Re: Naming suggestion for this particular delegate/function

2010-08-03 Thread Bruno Medeiros
Partial-application/currying is another issue (related or not), but I made no mention of it. I meant map simply as "higher-order function that applies a given function element-wise to a list of elements and returns a list of results". No currying involved. On 01/08/2010 09:34, Philippe Sigaud