New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime conflict with druntime #47
Comments
Those are backwards compatibility modules. I am confused about the nature of the bug here... is this an issue of using both in the same program? Or the Tango one not working at all? |
The issue is the following: module main;
import std.stdio;
unittest {
writeln("foo");
}
void main () { }
The expected output is "foo", but there is no output. As soon as I link with Tango it won't run the unit tests. Note that I don't even need to use Tango in the application, I just need to link with Tango. I think the issue is tango.core.Runtime.runModuleUnitTests. druntime contains a function with the exact same name. Since both the one in Tango and the one in druntime is declared as The version of I think these modules should be removed from Tango, they're part of the runtime, which druntime implements now. If these exist along side with the ones in druntime Tango won't be compatible with druntime and we have the same problem again as we did with D1. |
I can't reproduce this behavior (the code you pasted runs just fine for me). What OS is this? I'll see what I can do about the mismatched function types. I'd rather not alias tango.core.Runtime with core.runtime since Tango's version of that module has features missing in druntime... I'll see if I can combine them somehow. |
Mac OS X.
That would be nice. |
The command DMD uses to link is:
If I move |
A guess, remove |
Could you try it now, now that 6a29012 is committed? |
Thanks that works. Fixed in 6a29012 |
There are some conflicts between the functionality in
tango.core.Runtime
andcore.runtime
. For example, the unit test runner in Tango seems to override the one in druntime.BTW why are some parts of the Tango runtime left, like:
tango.core.
-The text was updated successfully, but these errors were encountered: