Error trapping with Dyalog APL: Difference between revisions

Jump to navigation Jump to search
Miraheze>Adám Brudzewsky
(10 intermediate revisions by 5 users not shown)
Line 191: Line 191:
== Code ==
== Code ==


<div class="toccolours mw-collapsible mw-collapsed">
{{Collapse|The below workspace contains all the code needed to implement the ideas discussed above.|<source lang=apl>
The below workspace contains all the code needed to implement the ideas discussed above.
<div class="mw-collapsible-content">
<source lang=apl>
(⎕IO ⎕ML ⎕WX)←1 1 3
(⎕IO ⎕ML ⎕WX)←1 1 3


Line 542: Line 539:
       r←'Development'≡(⎕IO+3)⊃'.'⎕WG'APLVersion'
       r←'Development'≡(⎕IO+3)⊃'.'⎕WG'APLVersion'
     ∇
     ∇


     ∇ Off status
     ∇ Off status
Line 769: Line 767:
:EndNamespace
:EndNamespace
</source>
</source>
</div>
}}
</div>
== See also ==
 
* [[Dfn#Error-guards|Dfn error-guards]]
* [[Error trapping in Dyalog APL forms]]
 
== External links ==
 
=== Lessons ===
 
* Error handling webinars: [https://dyalog.tv/Webinar/?v=tDK0AKXXRAk part 1], [https://dyalog.tv/Webinar/?v=PSrXyk5tN6o part 2], [https://dyalog.tv/Webinar/?v=jkD-iQfjo_Q part 3], [https://dyalog.tv/Webinar/?v=G7Ht8iKvDMo part 4], [https://dyalog.tv/Webinar/?v=WP6R7VRmHfc part 5]
* [https://chat.stackexchange.com/rooms/52405/conversation/lesson-13-code-management-i-o-dates-unicode-files-errors#42339704 APL Cultivation]
 
=== Documentation ===
* [https://help.dyalog.com/latest/#Language/System%20Functions/signal.htm Signal Event]
* [https://help.dyalog.com/latest/#Language/Errors/APL%20Errors.htm Error messages]
* [https://help.dyalog.com/latest/#Language/System%20Functions/trap.htm Trap Event]
* [https://help.dyalog.com/latest/#Language/Control%20Structures/trap.htm Trap Statement]
* [https://help.dyalog.com/latest/#Language/System%20Functions/dm.htm Diagnostic Message]
* [https://help.dyalog.com/latest/#Language/System%20Functions/en.htm Event Number]
 
[[Category:Tutorials]][[Category:Dyalog APL examples]]
{{APL development}}

Navigation menu