[Issue 3252] undefined reference to package function called from an interface
https://issues.dlang.org/show_bug.cgi?id=3252 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Version|1.045 |D1 --
[Issue 3252] undefined reference to package function called from an interface
http://d.puremagic.com/issues/show_bug.cgi?id=3252 --- Comment #6 from Diggory diggory.ha...@gmail.com 2013-01-25 09:41:59 PST --- Agreed, except that I guess package (and private) functions should be legal in an interface in the first place. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3252] undefined reference to package function called from an interface
http://d.puremagic.com/issues/show_bug.cgi?id=3252 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||andrej.mitrov...@gmail.com Resolution||INVALID --- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-01-22 12:10:09 PST --- package methods are non-virtual, so you're not overriding iPack here but instead introducing a new function in the 'A' class. 'I.pack' is an externally defined final function, which is why linking fails. If you define a body for 'I.pack' you will see that the compiler won't complain about an interface method having an implementation, because package (i.e. non-virtual) methods are allowed in interfaces. The compiler currently doesn't complain about having a function in the base class (or interface) having the same name as the one defined in the current class: class B { package void iPack() { } } class A : B { package void iPack() // no errors, neither in D1 or D2 { } } But that is a separate issue which would be an enhancement request (I think there are some opened ones about this). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3252] undefined reference to package function called from an interface
http://d.puremagic.com/issues/show_bug.cgi?id=3252 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added CC||verylonglogin@gmail.com --- Comment #4 from Denis Shelomovskij verylonglogin@gmail.com 2012-09-24 09:21:31 MSD --- And this isn't related to Issue 8716 because `a.packageFunc` module gives the same error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3252] undefined reference to package function called from an interface
http://d.puremagic.com/issues/show_bug.cgi?id=3252 Alexey Ivanov aifg...@gmail.com changed: What|Removed |Added CC||aifg...@gmail.com OS/Version|Linux |All --- Comment #2 from Alexey Ivanov aifg...@gmail.com 2010-01-24 09:46:54 PST --- Same problem on windows -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---