View mode: basic / threaded / horizontal-split · Log in · Help
June 26, 2005
Question about Derelict
Hi,

I finally decided to give Derelic a try to fool around a little in SDL. 
I downloaded Derelic 0.1 from DSource but when I try to import SDL I get 
following error message:

C:\dmd\src\derelict\sdl\events.d(220): cannot implicitly convert 
expression (-1) of type int to ubyte

I understand the problem but why was a constant with the value -1 
declared to be an unsigned integer in the first place? Why is such an 
error in the sources? Everybody must have problems with this declaration 
so in fact Derelict is useless in this state. And what is the workaround?

Regards,
Nils
June 26, 2005
Re: Question about Derelict
Nils Hensel wrote:
> Hi,
> 
> I finally decided to give Derelic a try to fool around a little in SDL. 
> I downloaded Derelic 0.1 from DSource but when I try to import SDL I get 
> following error message:
> 
> C:\dmd\src\derelict\sdl\events.d(220): cannot implicitly convert 
> expression (-1) of type int to ubyte
> 
> I understand the problem but why was a constant with the value -1 
> declared to be an unsigned integer in the first place? Why is such an 
> error in the sources? Everybody must have problems with this declaration 
> so in fact Derelict is useless in this state. And what is the workaround?
> 
> Regards,
> Nils

Hi. For future reference, please post questions about derelict here 
http://www.dsource.org/forums/viewforum.php?f=19&sid=9311bf5994b3a229dedb8a3d4bbf07ae 
 if possible.

If you did not realize, Derilict 0.1 is sorely outdated, roughly a year 
old. The D compiler has been evolving ever since that time, and the 0.1 
release doesn't work with the current D compiler.

Your best bet is to get a hold of SVN here http://subversion.tigris.org/ 
and download the latest version of derelict from its repository. 
(http://svn.dsource.org/projects/derelict)

More instructions can be found here 
http://www.dsource.org/site/svnclient.php just remember that you use 
svn.dsource.org/projects instead of svn.dsource.org/svn/projects.

Goodluck!
June 26, 2005
Re: Question about Derelict
Nils Hensel wrote:
> Hi,
> 
> I finally decided to give Derelic a try to fool around a little in SDL. 
> I downloaded Derelic 0.1 from DSource but when I try to import SDL I get 
> following error message:
> 
> C:\dmd\src\derelict\sdl\events.d(220): cannot implicitly convert 
> expression (-1) of type int to ubyte
> 
> I understand the problem but why was a constant with the value -1 
> declared to be an unsigned integer in the first place? Why is such an 
> error in the sources? Everybody must have problems with this declaration 
> so in fact Derelict is useless in this state. And what is the workaround?

One of these days I'll get some new zip archives uploaded. Derelict has 
grown and evolved quite a bit since that 0.1 archive was posted. Until 
new release archives get posted (the only thing remaining to do before 
that happens is to implement the Linux scripts for the Build utility), 
the current version can always be checked out of svn. The "New Users" 
thread in the Derelict forums 
(http://www.dsource.org/forums/viewtopic.php?t=828) should go a long way 
toward getting you started.
June 26, 2005
Re: Question about Derelict
clayasaurus schrieb:
> Hi. For future reference, please post questions about derelict here 
> http://www.dsource.org/forums/viewforum.php?f=19&sid=9311bf5994b3a229dedb8a3d4bbf07ae 
>  if possible.
Sorry, I will do so in the future.

> If you did not realize, Derilict 0.1 is sorely outdated, roughly a year 
> old. The D compiler has been evolving ever since that time, and the 0.1 
> release doesn't work with the current D compiler.
I thought so, but I was puzzled by the lack of information and tempted 
by the ease downloading the archive on dsource ;-)

> Your best bet is to get a hold of SVN here http://subversion.tigris.org/ 
> and download the latest version of derelict from its repository. 
> (http://svn.dsource.org/projects/derelict)
Did as proposed and everything works like a charm now, thanks!

Regards,
Nils
June 26, 2005
Re: Question about Derelict
Mike Parker schrieb:
> One of these days I'll get some new zip archives uploaded. Derelict has 
> grown and evolved quite a bit since that 0.1 archive was posted. Until 
> new release archives get posted (the only thing remaining to do before 
> that happens is to implement the Linux scripts for the Build utility), 
> the current version can always be checked out of svn. The "New Users" 
> thread in the Derelict forums 
> (http://www.dsource.org/forums/viewtopic.php?t=828) should go a long way 
> toward getting you started.

It did, thanks. And by the way: Great Work!

It's a pity though that Python didn't make it into derelict since it's 
an awesome language and would be a wonderful addition to any D app in 
need of scripting support. But maybe someday ...

Best regards,
Nils
June 26, 2005
Re: Question about Derelict
Nils Hensel wrote:
> Mike Parker schrieb:
> 
>> One of these days I'll get some new zip archives uploaded. Derelict 
>> has grown and evolved quite a bit since that 0.1 archive was posted. 
>> Until new release archives get posted (the only thing remaining to do 
>> before that happens is to implement the Linux scripts for the Build 
>> utility), the current version can always be checked out of svn. The 
>> "New Users" thread in the Derelict forums 
>> (http://www.dsource.org/forums/viewtopic.php?t=828) should go a long 
>> way toward getting you started.
> 
> 
> It did, thanks. And by the way: Great Work!
> 
> It's a pity though that Python didn't make it into derelict since it's 
> an awesome language and would be a wonderful addition to any D app in 
> need of scripting support. But maybe someday ...
> 
> Best regards,
> Nils

You can always try lua, it is in the bindings project at dsource, and a 
derelict like version of it is here 
http://svn.dsource.org/projects/warbots/trunk/current/derelict/lua/

Maybe not as great as python, but it is something.
June 27, 2005
Re: Question about Derelict
Nils Hensel wrote:
> 
> It did, thanks. And by the way: Great Work!

Thanks!

> 
> It's a pity though that Python didn't make it into derelict since it's 
> an awesome language and would be a wonderful addition to any D app in 
> need of scripting support. But maybe someday ...

It will be there eventually, as I really want to use it myself.
Top | Discussion index | About this forum | D home