Warning on insufficiently sized variable assignment

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Warning on insufficiently sized variable assignment

Post by Mistrel »

I believe this check should only be available with the debugger enabled and only occur for functions returning a result and not ubiquitously where truncation might occur on literal or variable-to-variable assignment as this might be desired.

Example:

Code: Select all

a = ElapsedMilliseconds()
Case in point:

http://www.purebasic.fr/english/viewtop ... 13&t=67312