Re: Using the same name for diffrent entities

2017-05-01 Thread Basile B. via Digitalmars-d-learn
On Monday, 1 May 2017 at 14:01:19 UTC, Noy wrote: Hello, Is it possible to use the same name for different entities? For example calling a variable and a class\function by the same name. It only works with functions that take different parameters or with templated functions that have constra

Re: Using the same name for diffrent entities

2017-05-01 Thread Mike Parker via Digitalmars-d-learn
On Monday, 1 May 2017 at 14:01:19 UTC, Noy wrote: Hello, Is it possible to use the same name for different entities? For example calling a variable and a class\function by the same name. Symbols declared in the same scope must be unique. For example: ``` module foo; int bar; void bar(); cla

Using the same name for diffrent entities

2017-05-01 Thread Noy via Digitalmars-d-learn
Hello, Is it possible to use the same name for different entities? For example calling a variable and a class\function by the same name.