Folding error with functions...

Previous topic - Next topic

gregbug

ok.
i'm back to convert my libs with v8.006 beta...  =D

I think that i found "the bug"in glbasic that is going me crazy for a few days ...
is related to folding and unfolding functions....

try this...

Code (glbasic) Select

FUNCTION test:




ENDFUNCTION

GLOBAL t = 1



now "close" the function and (f5) compile... all is ok ...

now try this... (add some comments)

Code (glbasic) Select

  FUNCTION test:

// some innocent comment here.


  ENDFUNCTION


now "close" the function and try to compile (f5)

and... tada!!!!

Code (glbasic) Select

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.972 SN:ac0044df - 3D, NET
Wordcount:0 commands
compiling:
C:\Users\Gianluca\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `DGInt __GLBASIC__::test()':
C:\Users\Gianluca\AppData\Local\Temp\glbasic\gpc_temp0.cpp:74: error: a function-definition is not allowed here before '{' token
C:\Users\Gianluca\AppData\Local\Temp\glbasic\gpc_temp0.cpp:81: error: a function-definition is not allowed here before '{' token
C:\Users\Gianluca\AppData\Local\Temp\glbasic\gpc_temp0.cpp: At global scope:
C:\Users\Gianluca\AppData\Local\Temp\glbasic\gpc_temp0.cpp:94: error: expected `}' at end of input
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 1.1 sec. Time: 00:56
Build: 0 succeeded.


:rant: :rant: :rant: :rant: :rant:

it seems that if you add some comments inside a function then "close" the function and compile the compiler don't like it!!!

...  :'(

and... when will be possible to compile for iphone with the extended type (functions inside a type) ?


thanks...

Gianluca. (ps: sorry for the bad translation!!!)
CIAO!
Ciao Ciao,
Gianluca. (l'Aquila tornerà a volare alta nel cielo!!!!)

MrTAToad

Yes, both are valid problems :)

gregbug

No news about the two problems reported?  ::)
(folding and iphone compile)

thanks!  :happy:
Ciao Ciao,
Gianluca. (l'Aquila tornerà a volare alta nel cielo!!!!)

MrTAToad

iPhone compiling with extended types should work in V8.036

But code folding still needs to be fixed.

gregbug

Quote from: MrTAToad on 2010-Jul-10
iPhone compiling with extended types should work in V8.036

But code folding still needs to be fixed.

i hope 8.036 will be out soon... just want try my lib (with extended type) on the iphone!  =D
Ciao Ciao,
Gianluca. (l'Aquila tornerà a volare alta nel cielo!!!!)

MrTAToad

Its been out a few days - if you have the latest beta...

gregbug

Quote from: MrTAToad on 2010-Jul-10
Its been out a few days - if you have the latest beta...

downloaded from first post but it's 8.006!  :o (from announcements beta v8)
Ciao Ciao,
Gianluca. (l'Aquila tornerà a volare alta nel cielo!!!!)

MrTAToad

Thats right!  Just do an Internet Update

gregbug

Quote from: MrTAToad on 2010-Jul-10
Thats right!  Just do an Internet Update

doh!  =D

ops i tried same days ago!!! (disabled check daily)
...
i feel like my avatar!!
sorry ;)

and thanks!
Ciao Ciao,
Gianluca. (l'Aquila tornerà a volare alta nel cielo!!!!)

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard