[Issue 8817] Symbols named init should be illegal

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8817

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|unspecified |D2

--


[Issue 8817] Symbols named init should be illegal

2014-04-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8817

Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com ---


*** This issue has been marked as a duplicate of issue 7066 ***

--


[Issue 8817] Symbols named init should be illegal

2012-10-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8817


Alex R�nne Petersen a...@lycus.org changed:

   What|Removed |Added

 CC||a...@lycus.org


--- Comment #1 from Alex R�nne Petersen a...@lycus.org 2012-10-14 09:38:30 
CEST ---
This actually happens to be a problem in druntime's TypeInfo classes because
they have a property called init. A lot of code currently relies on that
'overload' of the init symbol.

https://github.com/D-Programming-Language/druntime/blob/master/src/object.di#L75

That comment has been there for eons. What do we do about it?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 8817] Symbols named init should be illegal

2012-10-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8817



--- Comment #2 from Jonathan M Davis jmdavisp...@gmx.com 2012-10-14 00:48:24 
PDT ---
 That comment has been there for eons. What do we do about it?

Create a function with the correct name (whatever that is - initialize?) and
mark the old one as scheduled for deprecation making sure that we put an
appropriate note in the changelog (in red if we think that it's major enough -
I don't know how much code really uses TypeInfo, let alone TypeInfo.init()
though). Then we deprecate it. It'll probably have to stick around as
deprecated for a while to help the transition, but after that, we remove it,
and it won't cause an issues any longer.

Unfortunately, it wouldn't surprise me if there are plenty of types out there
with an init function (std.file.DirEntry used to have one), but IMHO it's just
fundamentally broken to allow that given how it conflicts with the actual init
property. And I think that this is a case where it's worth breaking code if we
have to (but that makes it that much more critical that we make the changes
necessary for this sooner rather than later).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---