Dynload

I wrote a short chapter on dynamic loading in ATS:

http://www.ats-lang.org/DOCUMENT/ATS2TUTORIAL/HTML/book1.html

If you construct a program in ATS that contains several DATS-files, then
you need to have
a basic understanding of dynload-declaration and dynload-function.

If a file-scope val is declared or the code uses exceptions.

To skip it, you need to include the following line

#define ATS_DYNLOADFLAG 0

at the beginning of the involved DATS-file.On Sat, Sep 13, 2014 at 11:20 AM, Shea Levy sh...@shealevy.com wrote:

Do I understand correctly that dynloading is only necessary if a
file-scope val is declared? Is there any way to skip it in the special
case where a file-scope var could be initialized with constant
initialization in C?

~Shea

On Fri, Sep 12, 2014 at 10:04:21PM -0700, gmhwxi wrote:

I wrote a short chapter on dynamic loading in ATS:

http://www.ats-lang.org/DOCUMENT/ATS2TUTORIAL/HTML/book1.html

If you construct a program in ATS that contains several DATS-files, then
you need to have
a basic understanding of dynload-declaration and dynload-function.


You received this message because you are subscribed to the Google
Groups “ats-lang-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/1b99c1e3-54d4-4e0a-a546-661a2366fe90%40googlegroups.com
.


You received this message because you are subscribed to the Google Groups
“ats-lang-users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/20140913152034.GD2275%40nixos.hsd1.nh.comcast.net
.

Do I understand correctly that dynloading is only necessary if a
file-scope val is declared? Is there any way to skip it in the special
case where a file-scope var could be initialized with constant
initialization in C?

~SheaOn Fri, Sep 12, 2014 at 10:04:21PM -0700, gmhwxi wrote:

I wrote a short chapter on dynamic loading in ATS:

http://www.ats-lang.org/DOCUMENT/ATS2TUTORIAL/HTML/book1.html

If you construct a program in ATS that contains several DATS-files, then
you need to have
a basic understanding of dynload-declaration and dynload-function.


You received this message because you are subscribed to the Google Groups “ats-lang-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/1b99c1e3-54d4-4e0a-a546-661a2366fe90%40googlegroups.com.