No subject


Mon Feb 11 23:15:10 PST 2008


For dynamic array and object parameters, which are passed by reference, 
in/out/ref apply only to the reference and not the contents.

What exactly (internally memory wise) does 'passing' mean. Is it like 
copying?
And does this mean that static arrays are not passed by reference and should 
I use:
void func(ref array.ptr)
,because otherwise the whole array is passed (copied) ? (which sound slow:)

Another question :)

What is the advantage of making a function/variable static?
It makes it nonvirtual, right. Why is this good?
When should I make something static or final?

A private function/var can't used by anything in a 'lower' scope, right?

Well thats it for now =D 




More information about the Digitalmars-d-learn mailing list