LIMIT ERROR: Difference between revisions

Jump to navigation Jump to search
27 bytes added ,  22:13, 10 September 2022
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Tags: Mobile edit Mobile web edit
 
Line 5: Line 5:
       ((8⍴1)⍴2)∘.+((8⍴1)⍴3)
       ((8⍴1)⍴2)∘.+((8⍴1)⍴3)
                 ∧
                 ∧
</source>
</syntaxhighlight>
{{Works in|[[Dyalog APL]]}}
{{Works in|[[Dyalog APL]]}}
In a 64-bit interpreter, it is rare to run into an array length limit, since the maximum allowed length is usually on the order of <syntaxhighlight lang=apl inline>2*64</source>, and attempting to create an array this large may run into a [[DOMAIN ERROR]] or [[WS FULL]], as most machines do not have enough addressable memory to store it. [[Empty]] arrays do not need storage space, so working with arrays with one length-0 axis and one long axis can sometimes reveal a LIMIT ERROR:
In a 64-bit interpreter, it is rare to run into an array length limit, since the maximum allowed length is usually on the order of <syntaxhighlight lang=apl inline>2*64</syntaxhighlight>, and attempting to create an array this large may run into a [[DOMAIN ERROR]] or [[WS FULL]], as most machines do not have enough addressable memory to store it. [[Empty]] arrays do not need storage space, so working with arrays with one length-0 axis and one long axis can sometimes reveal a LIMIT ERROR:
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
       ((0,2*63)⍴2) , ((0,2*63)⍴3)
       ((0,2*63)⍴2) , ((0,2*63)⍴3)
Line 13: Line 13:
       ((0,2*63)⍴2),((0,2*63)⍴3)
       ((0,2*63)⍴2),((0,2*63)⍴3)
                   ∧
                   ∧
</source>
</syntaxhighlight>
{{Works in|[[Dyalog APL]]}}
{{Works in|[[Dyalog APL]]}}
LIMIT ERRORs may appear when working with components outside of APL such as files. Operating system limitations are usually reported as LIMIT ERRORs, since they are caused by constraints outside of the APL interpreter's control.
LIMIT ERRORs may appear when working with components outside of APL such as files. Operating system limitations are usually reported as LIMIT ERRORs, since they are caused by constraints outside of the APL interpreter's control.


{{APL features}}[[Category:Errors]]
{{APL features}}[[Category:Errors]]

Navigation menu