03-06-2023, 08:16 AM
There is a faster way, use memset:
Please, try this and tell me if it works.
Also, I'm curious: How did you implement ADDRESS(v) and SIZE(v), they can be useful and included in the compiler.
(The next version will have changes and will update the standard library).
Code:
#include <memcopy.bas>
PROCEDURE CLEAR (v)
MEMCOPY(ADDRESS(v), 0, SIZE(v))
END PROCEDURE
Please, try this and tell me if it works.
Also, I'm curious: How did you implement ADDRESS(v) and SIZE(v), they can be useful and included in the compiler.
(The next version will have changes and will update the standard library).