Sure, same thing as a C-style array, minus the fact that we don't have
Index implemented for unsafe ptrs.

On Sat, Apr 5, 2014 at 9:07 AM, Simon Sapin <simon.sa...@exyr.org> wrote:
> On 05/04/2014 12:00, Corey Richardson wrote:
>>
>> A C-style array is written `*T`, much like in C (note: I'm not saying
>> `T*` and `T[]` are the same type, I know they aren't)
>
>
> *T in Rust is not an array, it is a raw pointer. It may happen to point to
> the start of an array that you could unsafely access with .offset() and
> ptr::read(), but you can not index it like an array.
>
> --
> Simon Sapin



-- 
http://octayn.net/
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to