Greetings,
Am Mit, 10 Mär 1999 schrieb George Greer:
> On Wed, 10 Mar 1999, Christian Loth wrote:
>
> >In C style you would declare them all at the beginning...but that
> >would also include the costs of constructions for your classes...
> >...whereas if you declare them where you actually need them you
> >only have those costs if you need those costs.
>
> Class *foo;
> ....
> ffoo = new Class;
Yes, that's true...however I was not talking about pointers
but about concrete instances like:
Class foo;
>
> Or better:
>
> function
> {
> vars
> do stuff
> if {
> more vars
> } else {
> more vars
> }
> }
Agreed. But isn't this also subject to your initial criticism?
If not, then I guess I didn't fully understand it...
- Chris
PS: CircleMUD Solutions? Love that ;)
--
Christian Loth
Coder of 'Project Gidayu'
Computer Science Student, University of Dortmund
sg618lo@uni-duisburg.de - chloth00@marvin.cs.uni-dortmund.de
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST