GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2014-Aug-26

Title: Holy Grail
Post by: MrPlow on 2014-Aug-26
I would love it if GLB allowed easy external library and in-line java coding!
Like the in-line c++ feature but for Java.

:whistle:
Title: Re: Holy Grail
Post by: MrTAToad on 2014-Aug-26
You'll have Gernot running around with his underpants on his head and running around proclaiming he is King of the Jellybeans...
Title: Re: Holy Grail
Post by: fuzzy70 on 2014-Aug-26
He might if you make him a Shrubbery  :D.

Honestly though can't see it happening due to it being limited to some platforms & not all, inline c++ works on all whereas Java doesn't.

Lee
Title: Re: Holy Grail
Post by: MrTAToad on 2014-Aug-26
Another problem is that Gernot would have to create/find a Java to C++ converter.  There are some, but they are all commercial programs.
Title: Re: Holy Grail
Post by: spacefractal on 2014-Aug-26
You cant do that at all to mix various languages that way.

Instead we have IMPORT to do that, so we can call c objective on iOS. Its could have been done same way with Java eventuelly, but im thinks its only relavant on Android. Android Extras does this very much, when im found a way to call the Java Virtual Machine. Its some sort of hack, which could have been done with IMPORT.
Title: Re: Holy Grail
Post by: Kitty Hello on 2014-Aug-29
it would be an idea to make a function:
JAVA_CALL("function_name", array_of_string_args$[])

Is that possible? I'm not a java king.
Title: Re: Holy Grail
Post by: spacefractal on 2014-Aug-30
Use the java Call function im created for android Extras. The most limit is howover its does one special Call to a function and split the string in the java part.

Property IMPORT could do the job and replace that function.

This would only work on Android. No idea on other systems.