mozilla/rust — pull request #2180 by graydon (2012-04-10 00:51:49+00:00)
Title: "new" vectors

This is a first cut of #2112 which means we should have consensus in there that we want the feature before landing. At the same time, I'd like some feedback on the direction I'm taking for implementation, and at some point I'd like to stop playing rebase-around-the-typechecker.

The current code is able to translate a fixed-size string allocation down to a single instruction (sp adjustment) and an init / copy to a simple block data-movement. So it's headed in, I think, the right direction. Working on slices next. It does not do the whole slew of things described in #2112 yet. It parses all of those types but only knows how to translate fixed-size strings (and doesn't yet put them in constant-space).

Anyway, take a look and let me know if you see any glaring mistakes. I'm happy to update this as I get feedback.