Limit to variables passed to a function

Blitz3D Forums/Blitz3D Beginners Area/Limit to variables passed to a function

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

When there's a limit for the length of a line then this may be the limit. Other than that I am not aware of any limit, although it wouldn't be surprising if there's some kind of max, within the range of reason.

you may try this:

wr=writefile("test.bb")

l$="dummy=test("

ma=10000 ;test 10 thousand arguments...
for i=0 to ma
 l$=l$+rand(10)+","
next
l$=l$+rand(10)+")"

writeline wr,l$
writeline wr,"waitkey()"
writeline wr,"end"

l$=" function test("
for i=0 to ma
 l$=l$+"x"+i+","
next
l$=l$+"x"+(ma+1)+")"

writeline wr,l$
writeline wr,"End Function"

closefile wr