With a fresh Nim devel I am getting
    
    
    Hint: glib [Processing]
    /home/stefan/gintrotest/tests/glib.nim(68, 13) Warning: use `csize_t` 
instead; csize is deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(69, 12) Warning: use `csize_t` 
instead; csize is deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(68, 13) Warning: use `csize_t` 
instead; csize is deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(69, 12) Warning: use `csize_t` 
instead; csize is deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(401, 42) Warning: Gsize is 
deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(704, 48) Warning: Gsize is 
deprecated [Deprecated]
    /home/stefan/gintrotest/tests/glib.nim(788, 47) Warning: Gsize is 
deprecated [Deprecated]
    ...
    
    
    Run

and much more. I assume csize is deprecated, and while GSize is based on it, I 
get it for GSize too.

Well that are only warnings, but a few remarks:

For me the warning text is inverted in logic, why not "csize is deprecated, use 
csize_t instead". I am wondering about this since many years.

Then, I was just looking for when csize_t is available. Because when I replace 
csize with csize_t I want to ensure that it compiles for 1.0 users still. Have 
not found a hint in release logs.

And last note: May generally the deprecation warnings come too early? That is, 
why not introduce csize_t first, but do not deprecate csize at the same time? 
Maybe deprecate csize some months later, when really all users have a compiler 
with csize_t available. Because: Most people use devel compiler, and so get all 
the deprecation warnings be default, but maybe can not fix the code, because a 
few users still have old compiler.

Reply via email to