[Mono-list] Minor bug

Pablo Baena pbaena@uol.com.ar
27 Apr 2003 08:06:39 +0000


--=-n49AB64L26ns1KACsP/w
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sun, 2003-04-27 at 11:05, Michal Moskal wrote:

> On Sun, Apr 27, 2003 at 07:52:22AM +0000, Pablo Baena wrote:
> > On Sat, 2003-04-26 at 23:55, Michal Moskal wrote:
> > 
> > > Sure. That's what's GC for ;-) Beside scope of 'a' (which is pointer to
> > > Clazz in C's sense) is this block only, actual Clazz instance is on
> > > heap.
> > 
> > 
> > And what is the case with structs that lay on the stack?
> 
> Structs are boxed on heap when passed as references, and copied
> otherwise.

But how is it that they aren't destroyed when there're references to it?

-- 
Pablo Baena <pbaena@uol.com.ar>

--=-n49AB64L26ns1KACsP/w
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.7">
</HEAD>
<BODY>
On Sun, 2003-04-27 at 11:05, Michal Moskal wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>On Sun, Apr 27, 2003 at 07:52:22AM +0000, Pablo Baena wrote:
&gt; On Sat, 2003-04-26 at 23:55, Michal Moskal wrote:
&gt; 
&gt; &gt; Sure. That's what's GC for ;-) Beside scope of 'a' (which is pointer to
&gt; &gt; Clazz in C's sense) is this block only, actual Clazz instance is on
&gt; &gt; heap.
&gt; 
&gt; 
&gt; And what is the case with structs that lay on the stack?

Structs are boxed on heap when passed as references, and copied
otherwise.</I></FONT></PRE>
</BLOCKQUOTE>
<FONT SIZE="3">But how is it that they aren't destroyed when there're references to it?</FONT>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Pablo Baena &lt;<A HREF="mailto:pbaena@uol.com.ar">pbaena@uol.com.ar</A>&gt;
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-n49AB64L26ns1KACsP/w--