Re: FFI question for Gregg
- Posted by ghaberek (admin) Mar 06, 2023
- 1525 views
ChrisB said...
The distinction arises when it's called, and there are two parameters, an error is thrown complaining about too many parameters. I realise that the same thing happens (as far as allocate_string), hence why I put 'if clean then end if' in there. The functionality is still the same, in that the second parameter if used is just discarded.
My point is that you shouldn't even be seeing it and you shouldn't care that it's there. When you include std/ffi.e its version of allocate_string() is not public so you'll never see it. Just leave it alone and use std/machine.e if you need allocate_string().
-Greg