stacst, stadef… and static? What is `static`?

22 views
Skip to first unread message

Yannick Duchêne

unread,
May 18, 2015, 5:05:52 PM5/18/15
to ats-lan...@googlegroups.com
Hi all,

I know `stacst` as in:
stacst index(i: int, j: int): int
in my understanding, meaning “anything which may exist of that type”.

I know `stadef` as in:
stadef index(i: int, j: int): int = (i - 1) + j
in my understanding, meaning “one which exist of that type”

But what the `static` keyword is used for?

Shea Levy

unread,
May 18, 2015, 5:07:37 PM5/18/15
to ats-lan...@googlegroups.com
It’s for static C functions, see [1].

[1]: http://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/c1998.html#external_name
> --
> 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/3e55c327-ee1c-4b27-acad-23ac58aae173%40googlegroups.com.

Yannick Duchêne

unread,
May 18, 2015, 5:13:36 PM5/18/15
to ats-lan...@googlegroups.com
OK, thanks. So that's not really ATS.
Reply all
Reply to author
Forward
0 new messages