Dynload

24 views
Skip to first unread message

gmhwxi

unread,
Sep 13, 2014, 1:04:21 AM9/13/14
to ats-lan...@googlegroups.com
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.

Shea Levy

unread,
Sep 13, 2014, 11:20:36 AM9/13/14
to ats-lan...@googlegroups.com
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
> --
> 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.

Hongwei Xi

unread,
Sep 13, 2014, 1:01:33 PM9/13/14
to ats-lan...@googlegroups.com
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.


Reply all
Reply to author
Forward
0 new messages