Code: Select all
pMethods as sqlite3_io_methods ptr
iVersion as integer
xClose as sqlite3_file ptr
dim a1 as sqlite3_file, a2 as sqlite3_io_methods
a1.pMethods = @a2
a2.xClose = @a1
As i understood, FreeBASIC doesn't support such declarations.
There is the error during compilation:
COHLIST.BAS(3) error 14: Expected identifier, found 'sqlite3_io_methods' in 'pMe
thods as sqlite3_io_methods ptr'
But this type of references is used very frequently during construction of
difficult linked list structures.
It will be very useful to support such lists in FreeBASIC.
This question is not abstract, such code is contained in file "sqlite3.bi",
which is included in "sqlite3_test.bas" from examples of using databases.
And it can't be compiled because this error occurs:
C:\frebasic\inc\sqlite3.bi(139) error 14: Expected identifier, found 'sqlite3_io_methods' in 'pMethods as sqlite3_io_methods ptr'