On Mon, 2014-04-21 at 13:23 -0400, David P Grove wrote:
[…]
> 
>       A typical idiom is to use @Native annotations.  For example:
> 
>       import x10.compiler.Native;
> 
>       .....
> 
> 
>       @Native("java", "true")
>       @Native("c++", "false")
>       native def onJVM():Boolean;

Thanks, this works a treat for me.

>       We could (should?) provide something like this in a standard library
> class like System or Runtime, but I don't believe we have done so.

I believe adding something into the run time systems to avoid everyone
having to have the above in their code would be a good thing.

Thanks.
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to