Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: std\thread.d  (Read 10647 times)

0 Members and 1 Guest are viewing this topic.

Core Xii

  • Jr. Member
  • **
  • Posts: 54
    • MSN Messenger - corexii@gmail.com
    • AOL Instant Messenger - Core+Xii
    • View Profile
std\thread.d
« on: May 25, 2009, 05:29:57 pm »
Quote
import\dsfml\system\thread.d(35): Error: module thread cannot read file 'std\thread.d'


So apparently DSFML is trying to import this thread.d from Phobos; It doesn't exist. What gives?

michaelp

  • Newbie
  • *
  • Posts: 18
    • View Profile
std\thread.d
« Reply #1 on: May 30, 2009, 06:40:38 pm »
Did you check if it exists?
What version of DMD are you using?
What version of SFML are you using?
D Programming Language

Core Xii

  • Jr. Member
  • **
  • Posts: 54
    • MSN Messenger - corexii@gmail.com
    • AOL Instant Messenger - Core+Xii
    • View Profile
std\thread.d
« Reply #2 on: May 31, 2009, 12:29:30 am »
Yes, I checked, it doesn't exist.

Using latest versions of everything (DMD 2.029, DSFML from SVN).

Quote
module dsfml.system.thread;

version(Tango)
{
static import tango.core.Thread;
alias tango.core.Thread.Thread DThread;
}
else
{
static import std.thread;
alias std.thread.Thread DThread;
}

[...]

michaelp

  • Newbie
  • *
  • Posts: 18
    • View Profile
std\thread.d
« Reply #3 on: May 31, 2009, 02:22:04 am »
Okay; try changing that line to core.thread, and anything else that references std.thread.whatever, change std to core.
If you go to the change log for DMD 2.020, you can see that "import std.thread" was changed to "import core.thread".
And, there is a DMD 2.030 out now, so you might want to get that.
D Programming Language

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
std\thread.d
« Reply #4 on: December 28, 2009, 04:08:30 pm »
This is real old code and probably didn't target D2 at all.

Phobos2 was ported to be based on druntime, so it's in core now as already stated.

Trass3r

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
std\thread.d
« Reply #5 on: January 05, 2010, 09:44:26 pm »
Yeah, you also need to replace all the char[]s with string, there are issues with opEquals and so on.

 

anything