BASIC

Author Topic: Holy Grail  (Read 1550 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1456
    • View Profile
Holy Grail
« 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:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

  • Guest
Re: Holy Grail
« Reply #1 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...

Offline fuzzy70

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 828
  • Look left, Look right, LOOK OUT!!
    • View Profile
Re: Holy Grail
« Reply #2 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
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

MrTAToad

  • Guest
Re: Holy Grail
« Reply #3 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.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3611
    • View Profile
    • Space Fractal
Re: Holy Grail
« Reply #4 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10697
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Holy Grail
« Reply #5 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.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3611
    • View Profile
    • Space Fractal
Re: Holy Grail
« Reply #6 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.