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

Problems with DFL and DMD v. 0.106

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Fri Nov 12, 2004 5:50 pm    Post subject: Problems with DFL and DMD v. 0.106 Reply with quote

I get the following errors when using DFL with DMD v. 0.106:

class dfl.messagebox.MessageBox member this is not accessible
class dfl.button.Button member this is not accessible

Confused
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sun Nov 14, 2004 2:51 pm    Post subject: Re: Problems with DFL and DMD v. 0.106 Reply with quote

Bojo wrote:
I get the following errors when using DFL with DMD v. 0.106:


Thanks for bringing this to my attention.
I've released DFL 0.5 with fixes. http://www.dprogramming.com/dfl.php


Quote:
class dfl.messagebox.MessageBox member this is not accessible


This is probably because you're trying to create an instance of MessageBox but you shouldn't be. All its members are static. DMD now checks the protection of constructors (hooray!).


Quote:
class dfl.button.Button member this is not accessible


This one is pretty strange. The error went away when I added a constructor to Button.
Back to top
View user's profile Send private message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Sun Nov 14, 2004 4:58 pm    Post subject: Re: Problems with DFL and DMD v. 0.106 Reply with quote

Vathix wrote:

Thanks for bringing this to my attention.
I've released DFL 0.5 with fixes. http://www.dprogramming.com/dfl.php

Quote:
class dfl.messagebox.MessageBox member this is not accessible


This is probably because you're trying to create an instance of MessageBox but you shouldn't be. All its members are static. DMD now checks the protection of constructors (hooray!).


Oops, my bad. I was new'ing every one of them. Embarassed
Nice that DMD checks it now.

Vathix wrote:

Quote:
class dfl.button.Button member this is not accessible


This one is pretty strange. The error went away when I added a constructor to Button.


Yep, but at least it seems to work now. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL 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