Subject:
Re: [ruby-ffi] default to :stdcall on windows?
From:
Luis Lavena
Date:
6/11/10 2:25 PM
To:
ruby-ffi@googlegroups.com

On Fri, Jun 11, 2010 at 12:16 PM, rogerdpack <rogerpack2005@gmail.com> wrote:
> I'm not sure if this is necessary, but I recently saw a bug report
> that, for one user, the fact that they weren't using stdcall for their
> method declarations was causing a memory leak.  Maybe it should
> default to stdcall on windows since that's what dll's default to,
> isn't it?
>

DLLs that are not Microsoft ones can safely be cdecl

defaulting to stdcall will make they need to explicitly state that also.

> Thoughts? Or maybe I'm repeating myself here.

There is no win-win situation more than "indicating". Explicit over implicit.
-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry