Re: Empty string
Tech-Archive recommends: Fix windows errors by optimizing your registry
- From: "Christof Nordiek" <cn@xxxxxxxxx>
- Date: Tue, 19 Jul 2005 09:31:29 +0200
"M D" <mardukes@xxxxxxx> schrieb im Newsbeitrag
news:e4ggu8BjFHA.2484@xxxxxxxxxxxxxxxxxxxxxxx
<snip>
> I wanted to call:
>
> foo(ref new string('\0',0), 0); //such intuitive syntax
> ..
</snip>
If that would be possible in C#, it would be the same as:
foo(ref "", 0);
(besides, it would be the same instance as any other "" literal; but tha is
only remarkable by reference comparison)
ref doesn't mean your giving an object reference to the method.
it means your giving a variable reference to the method.
Christof
.
Relevant Pages
- Re: Please explain the meaning of stealing a ref
... My last post in this thread, since it --like Alex noticed too-- tends to ... [snip: Alex ponders on whether the thread remains on topic (it merely ... function that owns a reference has to do, ... >no transfer of ownership takes place, and these meanings are so close ... (comp.lang.python) - Re: Evolution of PL/I
... also specified, exp1, exp2, and exp3 will be evaluated prior to the assignment of exp1 to the reference. ... (comp.lang.pl1) - Re: Subroutine foo redefined a bar
... If $_is a reference it will be used. ... Never say refeq 'ARRAY', ... if a scalar is a reference and the class of an object. ... (perl.beginners) - Re: OT: Snit is spinning a bunch of Snot
... Snit wrote: ... like the FACT that Apple doesn't support third ... site and didn't mention, or reference in any way, shape or form Auto-install ... (comp.sys.mac.advocacy) - Re: whats next for the linux kernel?
... Files are deleted if the last reference is gone. ... Directories are lists of references, and these lists are independent from ... (Linux-Kernel) |
|