Page 5 of 5

Re: Embedding LUA in PureBasic!?

Posted: Mon Aug 01, 2016 4:52 am
by jack
that's a good point DoubleDutch, I personally would compile to dll using msys2 and making an import lib using polib, that way there would be no need for runtime distribution dll's other than the lua dll.
you find msys2 at https://sourceforge.net/projects/msys2/
to make the 64-bit import-lib using polib do polib yourdll.dll /machine:x64 /out:yourlib.lib (polib is included in PB for Windows.)

Re: Embedding LUA in PureBasic!?

Posted: Thu Nov 17, 2016 3:06 pm
by deseven
How can i parse complex returns?

For example:

Code: Select all

function example() return {
  string  = _('example'),
  data    = {
    { 
      name         = 'John Doe',
      email        = 'john@example.com',
      location     = { 1.0, -1.0 }
    },
    { 
      name         = 'Jane Doe',
      email        = 'jane@example.com',
      location     = { -1.0, 1.0 }
    }
  }
} end
Ideally i want to put it in a PB structure, but can anyone show me how to do that?