This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add support for the sizeof function in Rust


>>>>> "Manish" == Manish Goregaokar <manish@mozilla.com> writes:

Manish> `sizeof` is a keyword so Rust functions by
Manish> that name cannot exist.

Thanks, that answers my major concern.

Manish> The expression could be `sizeof foo` instead of `sizeof(foo)`. I feel
Manish> the latter is better because it's closer to how `mem::size_of` works.

I agree.

This patch is ok.  Thanks.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]