Re: [Pharo-users] FFI to UFFI

2019-03-24 Thread Esteban Lorenzano
One final consideration: Truth is, once you load it in P7, the package should work (at least in 32 bits, I do not think is made thinking on 64bits platforms). Both notations ends calling same primitives. This means, if your intentions are just to play a bit and see how things work: you should

Re: [Pharo-users] FFI to UFFI

2019-03-24 Thread Esteban Lorenzano
Now, about translation to UFFI, is not so simple, but not so complex (it just needs some work). 1) you need to declare the types like SQLRETURN, usually in a shared pool, something like: SQLRETURN := #uint. That you later will include in your ODBC classes. 2) you need to translate structures

Re: [Pharo-users] FFI to UFFI

2019-03-23 Thread Esteban Lorenzano
Hi, One way: 1) load the old compiler from here: https://github.com/pharo-project/OldCompiler 2) Activate it: SmalltalkImage compilerClass: Compiler. 3) load ODBC 4) restore OpalCompiler SmalltalkImage compilerClass: OpalCompiler. This *shou

Re: [Pharo-users] FFI to UFFI

2019-03-23 Thread Pierce Ng
On Sat, Mar 23, 2019 at 05:22:32PM +, Tomaž Turk wrote: > - Is there any elegant way to successfuly load the package into Pharo 7 to > get started with the code adaptation? Elegantly, dunno. Manually, open Monticello browser, right click on the repo (if you have loaded the ConfigOf then the