Re: [Maria-developers] Code syntax: questions on pointers, etc.

2017-10-27 Thread Sergei Golubchik
Hi, Aleksey! On Oct 23, Aleksey Midenkov wrote: > On Sun, Oct 22, 2017 at 10:27 PM, Sergei Golubchik wrote: > >> 2. It is still passed as a pointer to functions. Why is that? > >> > >> The main feature of C++ references is that it cannot be NULL, so we > >> get segfault on top

Re: [Maria-developers] Code syntax: questions on pointers, etc.

2017-10-23 Thread Aleksey Midenkov
On Sun, Oct 22, 2017 at 10:27 PM, Sergei Golubchik wrote: > Hi, Aleksey! > > On Oct 20, Aleksey Midenkov wrote: >> Recent refactorings of replacing C strings with LEX_CSTRING which is >> no doubt a good thing raise some questions: >> >> 1. Is it still guaranteed that

Re: [Maria-developers] Code syntax: questions on pointers, etc.

2017-10-22 Thread Sergei Golubchik
Hi, Aleksey! On Oct 20, Aleksey Midenkov wrote: > Recent refactorings of replacing C strings with LEX_CSTRING which is > no doubt a good thing raise some questions: > > 1. Is it still guaranteed that Field::field_name.str is NULL-terminated? I think it's still the case, yes. What code relies on