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

Search found 4 matches
Forum Index
Author Message
  Topic: HButtonBox.createActionBox return type - bug or feature?
maksim

Replies: 2
Views: 6747

PostForum: gtkD   Posted: Fri Feb 18, 2011 5:44 pm   Subject: HButtonBox.createActionBox return type - bug or feature?
Hello!

HButtonBox.createActionBox method creates HButtonBox object
but returns ButtonBox object:
static ButtonBox createActionBox()
{
ButtonBox bBox = new HButtonBox();
...
  Topic: correct D type for C long type
maksim

Replies: 4
Views: 17049

PostForum: Bindings   Posted: Sun Feb 06, 2011 6:15 am   Subject: correct D type for C long type
Thank you!

Edited:
It doesn't work. Features like "(void*).sizeof" and "version( X86_64 )" depend on complier not CPU or OS.
I use a 32-bit D compiler and it says "(void* ...
  Topic: correct D type for C long type
maksim

Replies: 4
Views: 17049

PostForum: Bindings   Posted: Sat Feb 05, 2011 9:02 am   Subject: correct D type for C long type
Well, on my 64-bit platform:
C:
sizeof(int) = 4
sizeof(long) = 8
D:
int.sizeof = 4
long.sizeof = 8

So there is no problem if I compile my code with 64-bit libraries.

As far as I know, on 3 ...
  Topic: correct D type for C long type
maksim

Replies: 4
Views: 17049

PostForum: Bindings   Posted: Fri Feb 04, 2011 1:37 pm   Subject: correct D type for C long type
Hello!

They say that for long type in *.h file we should use int in *.d file:
http://www.digitalmars.com/d/2.0/htod.html

But in some files in this project long and ulong types are used for long ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group