You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tend to agree, similar to what Complex does. Although, we do currently use unsafe casting for assignments (i.e. also floats assigned to integer arrays get truncated). That is a bit less nasty though, so may be worth to specialize this a bit.
I tend to agree, similar to what Complex does. Although, we do currently use unsafe casting for assignments (i.e. also floats assigned to integer arrays get truncated). That is a bit less nasty though, so may be worth to specialize this a bit.
unsafe casting from float to integer is common, such as java/c/c++/c#.
while I think string unsafe casting is a dangerous operator. Support that sting is some key identification, and most developer don't think string have unsafe casting. I think it will cause much confused .
seberg
changed the title
bug during reset value of a string array
Warn about unsafe casting (assigning long string into shorter array)
Sep 22, 2019
seberg
changed the title
Warn about unsafe casting (assigning long string into shorter array)
Warn about string unsafe casting (assigning long string into shorter)
Sep 22, 2019
Code
when I want to reset a[0] as a longer string, it will cut off my new value. it cause a bug in my system and it takes my whole week. >_<
I rewrite it to :
it seems work well. While I think it might cause confused again in future.
The text was updated successfully, but these errors were encountered: