View previous topic :: View next topic |
Author |
Message |
Bojo
Joined: 22 Oct 2004 Posts: 23 Location: Denmark
|
Posted: Fri Nov 12, 2004 5:50 pm Post subject: Problems with DFL and DMD v. 0.106 |
|
|
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
|
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun Nov 14, 2004 2:51 pm Post subject: Re: Problems with DFL and DMD v. 0.106 |
|
|
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 |
|
|
Bojo
Joined: 22 Oct 2004 Posts: 23 Location: Denmark
|
Posted: Sun Nov 14, 2004 4:58 pm Post subject: Re: Problems with DFL and DMD v. 0.106 |
|
|
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.
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. |
|
Back to top |
|
|
|