LIMIT ERROR: Difference between revisions

Jump to navigation Jump to search
1 byte added ,  15:21, 15 November 2019
m
no edit summary
Miraheze>Marshall
(Created page with "A '''LIMIT ERROR''' is an error message indicating that some imposed limit of the interpreter (one that is due to resource or design rather than theoretical limitations) h...")
 
Miraheze>Adám Brudzewsky
mNo edit summary
Line 7: Line 7:
</source>
</source>
{{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 <source lang=apl inline>2*64</source>, and attempting to create an array this large may run into a [[DOMAIN ERROR]] or [[WSFULL]], 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 <source 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:
<source lang=apl>
<source lang=apl>
       ((0,2*63)⍴2) , ((0,2*63)⍴3)
       ((0,2*63)⍴2) , ((0,2*63)⍴3)

Navigation menu