Re: std.functional.compose compilation error

2017-11-08 Thread codephantom via Digitalmars-d-learn
On Thursday, 9 November 2017 at 04:58:19 UTC, Chuck Allison wrote: As others have said, rename the .d file, since files are considered modules. I have since changed my notes to reflect this change. Sorry for the confusion. Chuck Allison When coming to a new language I tend to write lots of

Re: std.functional.compose compilation error

2017-11-08 Thread Andrew Edwards via Digitalmars-d-learn
On Thursday, 9 November 2017 at 05:07:33 UTC, Andrew Edwards wrote: On Thursday, 9 November 2017 at 04:58:19 UTC, Chuck Allison wrote: Chuck Allison Sorry to hijack this thread but it shan't be helped. Chuck, how is it going? Curious about the status of "Thinking in D". How do I go about

Re: std.functional.compose compilation error

2017-11-08 Thread Andrew Edwards via Digitalmars-d-learn
On Thursday, 9 November 2017 at 04:58:19 UTC, Chuck Allison wrote: Chuck Allison Sorry to hijack this thread but it shan't be helped. Chuck, how is it going? Curious about the status of "Thinking in D". How do I go about participating in the draft review? -- Andrew

Re: std.functional.compose compilation error

2017-11-08 Thread Chuck Allison via Digitalmars-d-learn
On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: Hello, Trying to compile this example from Chuck Allison: --- import std.stdio; import std.functional; void main() { auto div3 = (double x) => x/3.0; auto sq = (double x) => x*x;

Re: std.functional.compose compilation error

2016-08-28 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 25 August 2016 at 21:01:29 UTC, Antonio Corbi wrote: On Thursday, 25 August 2016 at 14:30:00 UTC, Meta wrote: On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: Hello, Trying to compile this example from Chuck Allison: ---

Re: std.functional.compose compilation error

2016-08-25 Thread Antonio Corbi via Digitalmars-d-learn
On Thursday, 25 August 2016 at 14:30:00 UTC, Meta wrote: On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: Hello, Trying to compile this example from Chuck Allison: --- import std.stdio; import std.functional; void main() { auto div3

Re: std.functional.compose compilation error

2016-08-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, August 25, 2016 17:50:44 bachmeier via Digitalmars-d-learn wrote: > On Thursday, 25 August 2016 at 17:49:26 UTC, bachmeier wrote: > > On Thursday, 25 August 2016 at 15:04:43 UTC, Jonathan M Davis > > > > wrote: > >> Yes. Because the module is compose, within that file, compose > >>

Re: std.functional.compose compilation error

2016-08-25 Thread bachmeier via Digitalmars-d-learn
On Thursday, 25 August 2016 at 17:49:26 UTC, bachmeier wrote: On Thursday, 25 August 2016 at 15:04:43 UTC, Jonathan M Davis wrote: Yes. Because the module is compose, within that file, compose will refer to the module, not anything you import. The selective import essentially creates a local

Re: std.functional.compose compilation error

2016-08-25 Thread bachmeier via Digitalmars-d-learn
On Thursday, 25 August 2016 at 15:04:43 UTC, Jonathan M Davis wrote: Yes. Because the module is compose, within that file, compose will refer to the module, not anything you import. The selective import essentially creates a local alias like alias compose = std.functional.compose; as part

Re: std.functional.compose compilation error

2016-08-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, August 25, 2016 14:30:00 Meta via Digitalmars-d-learn wrote: > On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: > > Hello, > > > > Trying to compile this example from Chuck Allison: > > --- > > import std.stdio; > > import

Re: std.functional.compose compilation error

2016-08-25 Thread Meta via Digitalmars-d-learn
On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: Hello, Trying to compile this example from Chuck Allison: --- import std.stdio; import std.functional; void main() { auto div3 = (double x) => x/3.0; auto sq = (double x) => x*x;

std.functional.compose compilation error

2016-08-25 Thread Antonio Corbi via Digitalmars-d-learn
Hello, Trying to compile this example from Chuck Allison: --- import std.stdio; import std.functional; void main() { auto div3 = (double x) => x/3.0; auto sq = (double x) => x*x; auto pls1 = (double x) => x+1.0; alias