There is already NativeBoost class>>#isEnabledOrNil

On 17 Jan 2014, at 23:12, Igor Stasenko <siguc...@gmail.com> wrote:

> Btw, to reduce the pain, i propose to introduce:
> 
> NativeBoost isAvailable
> 
> protocol.
> 
> The implementation is simple, since primitiveIsEnabled fails only if it not 
> exists (else it returns true or false), do a following:
> 
> isAvailable
>    ^ self primIsAvailable notNil

so this could become

  ^ self isEnabledOrNil notNil

> primIsAvailable
>     "Answer flag indicating whether running a native code enabled by plugin"
>     <primitive: #primitiveIsEnabled module: #NativeBoostPlugin>
>     
>     ^ nil
> 
> Then you can easily implement a fallback mechanisms, if NB is not avail.

But we would still have to write the fallback code, right ;-)

> On 17 January 2014 23:07, Igor Stasenko <siguc...@gmail.com> wrote:
> 
> 
> 
> On 17 January 2014 22:59, Sven Van Caekenberghe <s...@stfx.eu> wrote:
> Who is JB ?
> 
> 
> Jean Baptiste Arnaud. The invaluable asset in any team :)
> The hacker who without any help configuring & compiling VM on raspberry. 
> 
> 
> -- 
> Best regards,
> Igor Stasenko.
> 
> 
> 
> -- 
> Best regards,
> Igor Stasenko.


Reply via email to