Alexey Ulasevich <alexey.ulasevich@gmail.com> writes:
Hi,
Where I can find more information about exceptions handling in GM2? I
mean documentation, examples etc.
Thanks,
Aleksey
Hi Aleksey,
at present there isn't a section in the gm2 documenation about
exception usage. I'll submit a PR requesting one though.
However there are a number of test programs in the testsuite which
contain interesting uses of execeptions:
Inside the GCC source tree:
(nested NIL and division by 0 exceptions)
gcc/testsuite/gm2/iso/run/pass/except8.mod
and also reduced cases in similar filenames:
gcc/testsuite/gm2/iso/run/pass/except?.mod
m2 exceptions and C++:
gcc/testsuite/gm2/exceptions/run/pass/*
regards,
Gaius