Re: string object won't compile

2018-03-05 Thread askjfbd via Digitalmars-d-learn
On Monday, 5 March 2018 at 23:42:59 UTC, Adam D. Ruppe wrote: On Monday, 5 March 2018 at 23:34:50 UTC, askjfbd wrote: string.d The problem is you named the file string.d and didn't give a `module x;` statement in the code, so the compiler assumed the module is named after the file

Re: string object won't compile

2018-03-05 Thread askjfbd via Digitalmars-d-learn
On Tuesday, 6 March 2018 at 00:18:14 UTC, psychoticRabbit wrote: On Monday, 5 March 2018 at 23:34:50 UTC, askjfbd wrote: Someone please tell me how, for I am a newbie and don't know any solutions even to this very simple problem. As I learned dlang using the Dlang tour page, I stuck at the

Re: string object won't compile

2018-03-05 Thread psychoticRabbit via Digitalmars-d-learn
On Monday, 5 March 2018 at 23:34:50 UTC, askjfbd wrote: Someone please tell me how, for I am a newbie and don't know any solutions even to this very simple problem. As I learned dlang using the Dlang tour page, I stuck at the alias & Strings page. I have tried to compile the following simple

Re: string object won't compile

2018-03-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 5 March 2018 at 23:34:50 UTC, askjfbd wrote: string.d The problem is you named the file string.d and didn't give a `module x;` statement in the code, so the compiler assumed the module is named after the file and thus introduced a local name `string` referring to the