Re: Higher-order functions?

2012-04-10 Thread Nick Sabalausky
"Timon Gehr" wrote in message news:jm2hnp$s0s$1...@digitalmars.com... > > (Well, the standard way to do what that python code does is using > templates. > > auto car_prices = map!(car => car.get_price)(list_of_cars);// lazy range > auto car_prices = array(map!(car => car.get_price(list_of_cars))

Re: Higher-order functions?

2012-04-10 Thread Nick Sabalausky
"Jonas H." wrote in message news:mailman.1600.1334099651.4860.digitalmars-d-le...@puremagic.com... > Hi everyone, > > does D have any runtime higher-order function facilities? (I'm not talking > about templates.) > Yes. Fully. Many are already in the std lib: http://dlang.org/phobos/std_algori

Re: Higher-order functions?

2012-04-10 Thread Timon Gehr
On 04/11/2012 01:13 AM, Jonas H. wrote: Hi everyone, does D have any runtime higher-order function facilities? D has full runtime support for higher-order functions and closures. import std.stdio; int[] map(scope int delegate(int) f, int[] a){ auto b = new int[a.length]; foreach(i,x;a

Re: Higher-order functions?

2012-04-10 Thread H. S. Teoh
On Wed, Apr 11, 2012 at 01:13:17AM +0200, Jonas H. wrote: > Hi everyone, > > does D have any runtime higher-order function facilities? (I'm not > talking about templates.) > > More specifically, is something like this possible? (That's how I'd > do it in Python) > > car_prices = map(Car.get_pric

Higher-order functions?

2012-04-10 Thread Jonas H.
Hi everyone, does D have any runtime higher-order function facilities? (I'm not talking about templates.) More specifically, is something like this possible? (That's how I'd do it in Python) car_prices = map(Car.get_price, list_of_cars) car = new Car foobar(car.get_price) Thanks Jonas

Re: Dear ChrisMiller: This is day 4 of me trying to Compile a (tutorial) myForm.d program with D/Dfl/Entice.

2012-04-10 Thread Andrej Mitrovic
On 4/10/12, vmars316 wrote: > On Tuesday, 10 April 2012 at 20:07:41 UTC, Andrej Mitrovic wrote: >> On 4/10/12, vmars316 wrote: > > Ah, this looks thorough. > It'll probably be a while before I respond, > because GIT is all new to me. > I am starting here: http://help.github.com/win-set-up-git/ >

Re: Dear ChrisMiller: This is day 4 of me trying to Compile a (tutorial) myForm.d program with D/Dfl/Entice.

2012-04-10 Thread vmars316
On Tuesday, 10 April 2012 at 20:07:41 UTC, Andrej Mitrovic wrote: On 4/10/12, vmars316 wrote: Ah, this looks thorough. It'll probably be a while before I respond, because GIT is all new to me. I am starting here: http://help.github.com/win-set-up-git/ Thanks...vm

Re: Dear ChrisMiller: This is day 4 of me trying to Compile a (tutorial) myForm.d program with D/Dfl/Entice.

2012-04-10 Thread Andrej Mitrovic
On 4/10/12, vmars316 wrote: > This is day 4 of me trying to Compile a (tutorial) myForm.d > program with D/Dfl/Entice. Almost a year ago a newbie had the same issue. I gave him some short instructions but apparently this post isn't in the archives for some reason. Anyway the instructions were: m

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Andrej Mitrovic
On 4/10/12, Stewart Gordon wrote: > Assuming that you did hit the "Submit Changes" button and that the email > address you have registered with Bugzilla is correct, I don't know. > Have you checked with your email provider to see if they're being > flagged as spam? Looks like you're right, it's i

Dear ChrisMiller: This is day 4 of me trying to Compile a (tutorial) myForm.d program with D/Dfl/Entice.

2012-04-10 Thread vmars316
Hello Chris Miller, This is day 4 of me trying to Compile a (tutorial) myForm.d program with D/Dfl/Entice. I am not getting the answers I need from dprogramming Forums.. Could you please help me with this. I am beginning to hate D-programming. But I’ll try to hang on a bit longer. http://forum.

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread vmars316
* I tried to compile myForm.d like this: When Entice asks for a CommandLine, I enter the following: C:\D\dmd2\windows\Entice\vmPrograms\myForm>call C:\D\dmd2\windows\bin\dfl.exe -g ui C:\D\dmd2\windows\Entice\vmPrograms\myForm\myForm.d C:\D\dmd2\windows\Dfl\lib DFL lib files not found. Woul

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread vmars316
On Tuesday, 10 April 2012 at 15:19:40 UTC, Jesse Phillips wrote: On Tuesday, 10 April 2012 at 14:21:35 UTC, Jesse Phillips wrote: I deleted all of "D" files and started over: OK, yes, I used the dfl098.zip structure you recommended: My install structure now looks like this: C:\D\dmd2\windows\bi

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Stewart Gordon
On 10/04/2012 13:30, Andrej Mitrovic wrote: On 4/10/12, Stewart Gordon wrote: Andrej, are emails from Bugzilla not getting through to you? I'm not getting any emails. Bugzilla stopped emailing me for quite a while now, I don't know why (except the monthly password reminder). Assuming that

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Jonathan M Davis
On Tuesday, April 10, 2012 13:06:08 Stewart Gordon wrote: > On 09/04/2012 18:35, Andrej Mitrovic wrote: > > On 4/9/12, Jonathan M Davis wrote: > >> Posix positional arguments seem to work for writefln but not format for > >> whatever reason. Report it as a bug. > > > > Thanks, http://d.puremagic.c

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread Jesse Phillips
On Tuesday, 10 April 2012 at 14:21:35 UTC, Jesse Phillips wrote: I suggest trying to get this method to work. DFL.exe is very picky about the directory structure. I'll have to double check the exact relationship I have (at work), but the source files for dfl are in an import folder. To get a

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread Jesse Phillips
On Monday, 9 April 2012 at 20:18:06 UTC, vmars316 wrote: C:\D\dmd2\windows\bin\dfl.exe -gui C:\D\dmd2\windows\bin\vmPrograms\myForm\myForm.d (the above is all one line) pause I got the following results: C:\D\dmd2\windows\bin\vmPrograms\myForm>C:\D\dmd2\windows\bin\dfl.exe -gui C:\D\ dmd2\w

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Andrej Mitrovic
On 4/10/12, Andrej Mitrovic wrote: > E.g. if I search for "format > positional" I get this lone result: > > http://d.puremagic.com/issues/buglist.cgi?quicksearch=format+positional I mean this result: http://d.puremagic.com/issues/show_bug.cgi?id=4927

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Andrej Mitrovic
On 4/10/12, Stewart Gordon wrote: > Andrej, are emails from Bugzilla not getting through to you? I'm not getting any emails. Bugzilla stopped emailing me for quite a while now, I don't know why (except the monthly password reminder). The emails page has all the ticks set except this row: "The iss

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Stewart Gordon
On 09/04/2012 18:35, Andrej Mitrovic wrote: On 4/9/12, Jonathan M Davis wrote: Posix positional arguments seem to work for writefln but not format for whatever reason. Report it as a bug. Thanks, http://d.puremagic.com/issues/show_bug.cgi?id=7877 Andrej, are emails from Bugzilla not getting

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread vmars316
I have been up all nite,trying to figure this out (6:21am). Well, I have gotten this far with compile myForm.d . C:\D\dmd2\windows\vmPrograms\myForm>call dmd.exe C:\D\dmd2\windows\vmPrograms\my Form\myForm.d -D -quiet -Dddocdir -H C:\D\dmd2\windows\vmPrograms\myForm\myForm.d(1): Error: module all

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread vmars316
I have been up all nite,trying to figure this out (6:21am). Well, I have gotten this far with compile myForm.d . C:\D\dmd2\windows\vmPrograms\myForm>call dmd.exe C:\D\dmd2\windows\vmPrograms\my Form\myForm.d -D -quiet -Dddocdir -H C:\D\dmd2\windows\vmPrograms\myForm\myForm.d(1): Error: module

Re: Latest versions of Entice Designer and DFL?

2012-04-10 Thread vmars316
Greetings, I went to a second computer, and reDownloded & Installed D/Dfl/Entice: dinstaller.exe , dfl098-installer.exe , entice08502.exe The following are A few more things that confuses and frustrates us newbies. 1) dinstall.exe creates 'C:\D\dmd2\'. 2) But Dfl-installer(dfl098.exe) looks f

Re: Multiple %s format specifiers with a single argument

2012-04-10 Thread Mike Parker
On 4/10/2012 3:43 AM, Ali Çehreli wrote: On 04/09/2012 10:35 AM, Andrej Mitrovic wrote: On 4/9/12, Jonathan M Davis wrote: Posix positional arguments seem to work for writefln but not format for whatever reason. Report it as a bug. Thanks, http://d.puremagic.com/issues/show_bug.cgi?id=7877