Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
November 06, 2003 propery problem | ||||
---|---|---|---|---|
| ||||
class C { int size; } void main(char[][] arg) { C c; printf ("%d", c.size); } Compiles fine, but gives "Error: Access Violation". Sz. |
November 06, 2003 Re: propery problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luna Kid | "Luna Kid" <lunakid@neuropolis.org> a écrit dans le message news: boejmc$1uil$1@digitaldaemon.com... > class C > { > int size; > } > > void main(char[][] arg) > { > C c; if( c === null ) { printf( "c is a reference, not an object" ); } else { > printf ("%d", c.size); } > } Hope this helps =) -- Nicolas Repiquet |
November 06, 2003 Re: propery problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luna Kid | Hehh, sorry!... :) I was slimming down a property example, but I seem to have gutted it a little too aggressively... ;) [How to cancel a message from Outlook Express? What is the control command for the server, Jan, please?] Cheers, Sz. "Luna Kid" <lunakid@neuropolis.org> wrote in message news:boejmc$1uil$1@digitaldaemon.com... > class C > { > int size; > } > > void main(char[][] arg) > { > C c; > printf ("%d", c.size); > } > > Compiles fine, but gives "Error: Access Violation". |
November 06, 2003 Re: propery problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicolas Repiquet | Hehe... Yeps, you were *very* quick... ;) Sz. "Nicolas Repiquet" <deadcow-remove-this@free.fr> wrote in message news:boejsr$1v2d$1@digitaldaemon.com... > > "Luna Kid" <lunakid@neuropolis.org> a écrit dans le message news: boejmc$1uil$1@digitaldaemon.com... > > class C > > { > > int size; > > } > > > > void main(char[][] arg) > > { > > C c; > if( c === null ) { > printf( "c is a reference, not an object" ); > } else { > > printf ("%d", c.size); > } > > } > > Hope this helps =) > > -- Nicolas Repiquet |
February 12, 2004 Re: propery problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luna Kid | "Luna Kid" <lunakid@neuropolis.org> wrote in message news:boek1h$1v98$1@digitaldaemon.com... > [How to cancel a message from Outlook Express? What > is the control command for the server, Jan, please?] Highlight the message, then click on the [Message] menu at the top. There's an option to cancel. |
Copyright © 1999-2021 by the D Language Foundation