Re: Plans for 2.8 - GNOME Managed Language Services?



В Вск, 28.03.2004, в 10:32, Murray Cumming пишет:
> On Sun, 2004-03-28 at 04:31, Miguel de Icaza wrote:
> > 
> > Value types are your ints, your longs, your byte blobs and they are
> > equivalent to C "structs".  That means that there is no object
> > overhead.  Arrays of value types are contiguous in memory and these
> > guys can live on the stack.
> 
> I guess your the expert here, but I'm fairly sure that the JVM does this
> too. If you pass an int value to a method, it's not going to be
> converted to an Object. Maybe Mono allows you to define new value types,
> or maybe you are talking about the equivalent of C++ copy-by-value for
> objects.

The JVM has just ints, floats (doubles) and objects, but no equivalent
of C structs without the object overhead.

-- 
Markus Bertheau <twanger bluetwanger de>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]