Named Parameters

Peter Haworth pete at lcsql.com
Sat May 5 13:38:26 EDT 2012


Thanks Richard, sounds like somewhat of a false alarm, unless you think a
variable content may exceed 4gigs.
Pete
lcSQL Software <http://www.lcsql.com>



On Sat, May 5, 2012 at 10:02 AM, Richard Gaskin
<ambassador at fourthworld.com>wrote:

> Peter Haworth wrote:
>
>> I also learned something new - that there's a limit to the amount of data
>> you can pass in to handlers in parameters.  As far as I know I haven't run
>> into that but sounds like it's something that should be checked if there's
>> any danger that it could happen in any specific handler.
>>
>
> While there's a limit on the length of a handler name, it's uint2 (64k) so
> it's not likely to be exceeded.
>
> In HC and SC there were limits on the number of arguments that could be
> passed to a handler, but if there are such limits in LC they're not listed
> with the other limits that govern the language.
>
> It may be that the general limit on single-line handling applies to script
> lines, which would be uint2.  But that would be a lot of typing for a
> single line anyway, and likely so unreadable that it would explain why no
> one's ever reported that as a problem.
>
> If such a limit exists, it would likely be for the length of the line, not
> any data contained in variables whose names appear in that line.
>
> I regularly pass data far larger than 64k in args, both by reference and
> by value, so I know it's bigger than that.
>
> It may be that the only limit is the same as the size of any variable,
> uint4 (~4GB).
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  LiveCode Journal blog: http://LiveCodejournal.com/**blog.irv<http://LiveCodejournal.com/blog.irv>
>
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list