On Thu, Oct 30, 2008 at 2:59 AM, zou lunkai <[EMAIL PROTECTED]> wrote: > In ActionScript, primitive numbers are not GC-collected or reference > counted, aren't they? > > What's the good point to make primitive numbers to be heap allocated? > Is it overkill? > Two things: 1) Performance and memory footprint - you want the value type to be machine size (see every Javascript engine out there). If you put doubles into the value type, you need > 8 bytes (8 for the double and 2 or 3 for the type description)
2) This test: x = 0/0; y = x; z = 0/0; trace (x == y); trace (x == z); In somewhat extended form also available as test/trace/equality-nan*.swf And as you noticed, sending to the commits list is disabled for mere mortals, so all useful discussion happens on the swfdec list. The commits list is just for spam from various bots (Bugzilla, commits, and I still want to hook up the wiki). Cheers, Benjamin _______________________________________________ Swfdec mailing list Swfdec@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/swfdec