View previous topic :: View next topic |
Author |
Message |
volcore
Joined: 22 Jan 2007 Posts: 19
|
Posted: Sun Mar 11, 2007 8:25 pm Post subject: Issue with new demarcate fix |
|
|
Hi, you've found a good solution for the demarcate bug, but there is a little problem:
The "if(0.95f == Tango)" has to be static, otherwise the compiler complains about the missing demarcate function.
Patch:
Code: |
Index: derelict/DerelictUtil/derelict/util/wrapper.d
===================================================================
--- derelict/DerelictUtil/derelict/util/wrapper.d (revision 243)
+++ derelict/DerelictUtil/derelict/util/wrapper.d (working copy)
@@ -91,7 +91,7 @@
{
version(Tango)
{
- if(0.95f == Tango)
+ static if(0.95f == Tango)
{
return demarcate(str, delim);
}
|
Cheers
Volker |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Mar 11, 2007 11:23 pm Post subject: |
|
|
That's weird. I compiled sdl_ex1 using rebuild and got no errors. I'll make the change anyway.
EDIT: Nevermind. I remember now. demarcate isn't missing, it's deprecated. Compiling with -d will also shut it up. The 'static if' solution is better, though. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
|