Subject: Re: [ruby-ffi] Re: lists only one lib? |
From: Luis Lavena |
Date: 12/21/09 11:38 AM |
To: ruby-ffi@googlegroups.com |
On Mon, Dec 21, 2009 at 2:11 PM, Vladimir Sizikov <vsizikov@gmail.com> wrote:
<luislavena@gmail.com> wrote:Hi Luis, On Mon, Dec 21, 2009 at 4:59 PM, Luis LavenaWayne already answered to you that ffi_lib takes an array, multiple invocations to append are not possible.From the perspective of a new FFI API user, these are all valid questions with no immediate/clear answer: - What would happen on subsequent ffi_lib call? Will it append, or will it overwrite?
This was answered previously in the group, asked by Roger and answered by Wayne about it.
- Is that even legal? If legal, is that a good practice?
This was answered too.
:) And I was bugging Wayne with such questions as well... :)I know I had those questions when I was starting using FFI.
Me too, but I believe that posts should be scanned. Both questions from Roger were asked by him before, both got answers from Wayne (ffi_lib) and Jon and myself for FindWindow call under Windows. If he is going to ask again those, ignoring the previous comments generated by us on that subject, I consider that either our answers weren't clear or he didn't pay attention to the time we invested in answering.
Looking at the ffi_lib code now, it is clear that subsequent ffi_lib calls are not good. Well, maybe we should make that totally explicit, and just don't allow to call ffi_lib the second time?
Indeed, is not clear the usage from the documentation due the lack of one example. As for accumulative calls, I'm not fond to them since I don't see the purpose. If Roger stated better his questions and sample for us to comprehend I would have answered differently. Regards,-- 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