[Gambas-devel] Bug on Gambas 1.9.28

Benoit Minisini gambas at ...1...
Mon Apr 17 19:09:54 CEST 2006


On Monday 17 April 2006 16:04, fabien Bodard wrote:
> ' Gambas class file
> CREATE
> INHERITS collection
>
> PUBLIC SUB _new()
>   DIM arg AS String
>   DIM s AS String
>   DIM ars AS NEW String[]
>   arg = application.Env["QUERY_STRING"]
>   arg = "titi=toto"
>   FOR EACH s IN Split(arg, " ")
>     ars = Split(s, "=")
>     IF ars.Count > 1 THEN
>       'PRINT ars[0]
>       SUPER[ars[0]] = ars[1]
>     ENDIF
>   NEXT
>
>
> END
>
>
> Try this ... it's not a segmentation fault but...
> It say not an array on the line :
> SUPER[ars[0]] = ars[1]
>
> It look to a problem of parsing. I cant write SUPER[s] = ars[1]
>
> But not put an array between braces.
>
> Regards,
> Fabien Bodard
>

OK. I fixed the bug! Try this patch...

-- 
Benoit Minisini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_exec.c
Type: text/x-csrc
Size: 30437 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20060417/00e77ee3/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_exec_loop.c
Type: text/x-csrc
Size: 35378 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20060417/00e77ee3/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbx_value.h
Type: text/x-chdr
Size: 4756 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20060417/00e77ee3/attachment.h>


More information about the Devel mailing list