Ats_packname?

Hi all,

I see many source files have ATS_PACKNAME #defines. I can guess what to
fill in there for my projects, but how is this used?

~Shea

Say you declare a function in a file XYZ.dats:

extern fun foo (…): …

The ATS compiler generates a global name for foo
using the full path of XYZ.dats, which is often hard to read.

If the flag ATS_PACKNAME is set, then the global name for foo
is ${ATS_PACKNAME}foo, where ${ATS_PACKNAME} is the string
value of ATS_PACKNAME.On Sat, Aug 30, 2014 at 12:12 AM, Shea Levy sh...@shealevy.com wrote:

Hi all,

I see many source files have ATS_PACKNAME #defines. I can guess what to
fill in there for my projects, but how is this used?

~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/20140830041220.GA9476%40nixos.hsd1.nh.comcast.net
.

I see, thank you.On Sat, Aug 30, 2014 at 12:22:07AM -0400, Hongwei Xi wrote:

Say you declare a function in a file XYZ.dats:

extern fun foo (…): …

The ATS compiler generates a global name for foo
using the full path of XYZ.dats, which is often hard to read.

If the flag ATS_PACKNAME is set, then the global name for foo
is ${ATS_PACKNAME}foo, where ${ATS_PACKNAME} is the string
value of ATS_PACKNAME.

On Sat, Aug 30, 2014 at 12:12 AM, Shea Levy sh...@shealevy.com wrote:

Hi all,

I see many source files have ATS_PACKNAME #defines. I can guess what to
fill in there for my projects, but how is this used?

~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/20140830041220.GA9476%40nixos.hsd1.nh.comcast.net
.


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/CAPPSPLrDaU_Gb6VO1UP1%2BuGUFnGGA30BCb%3D5Ntb_xwnn0X3ALQ%40mail.gmail.com.