On 15/06/2012 5:51 AM, Niko Matsakis wrote:
On 6/14/12 1:54 PM, Graydon Hoare wrote:
No, we need to be able to constant-fold manually in the front- or
middle- passes, not just punt the whole task to LLVM. Sad but true.
I did not mean to imply that we would actually use impl machinery for
everything. I meant that, internally, we would always use a method_map
table (or something like it) to decide what an overloadable-operator
meant.
Yeah, I'm fine with that, it's just a different factoring; I was only
responding to this parenthetical:
"(and maybe not even that, if we use actual rusti intrinsics?)"
We can't get by with _just_ rusti intrinsics for things we need insight
into for const-folding into read-only memory during compilation.
Sadly. I'd like to! Always more fun to punt stuff to LLVM :)
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev