FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Issue with new demarcate fix

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
volcore



Joined: 22 Jan 2007
Posts: 19

PostPosted: Sun Mar 11, 2007 8:25 pm    Post subject: Issue with new demarcate fix Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sun Mar 11, 2007 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sun Mar 11, 2007 11:28 pm    Post subject: Reply with quote

Fixed.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group