staload, paths, and infix operators

55 zobrazení
Přeskočit na první nepřečtenou zprávu

M88

nepřečteno,
2. 4. 2018 18:32:2202.04.18
komu: ats-lang-users
I have two questions...

The first is that path resolution seems to have changed from ATS2 0.3.7 and 0.3.9.
I used to be able to write 'staload "sats/foo.sats"' in "dats/foo.dats"
and running patscc from the project root would find the file.  Now it seems I need to
write 'staload "./../sats/foo.sats"'.   Did this actually change, or am I missing something?
Strangely, -IATS with the project root doesn't seem to be working for me either -- at least with patscc. 
I've tried both relative and absolute paths.

The second is that infix operators consisting of non-alpha symbols (eg, '|>') are not imported
from .sats files during staload.  I can declare them in .dats files.  Would I need to
#include these if I chose to share them between files?

gmhwxi

nepřečteno,
3. 4. 2018 14:20:4603.04.18
komu: ats-lang-users

>>Did this actually change, ...

Yes, it did. I took a look at the source code of ATS-Postiats.
The option -IATS seems to have been disabled. I will try to find
more on this.

>>Would I need to#include these if I chose to share them between files?

My own practice is to put infix declarations in a HATS file and
then include the file in places where the declarations are needed.

gmhwxi

nepřečteno,
5. 4. 2018 1:08:4305.04.18
komu: ats-lang-users

I could not figure out why the support for -IATS was
disabled. I have just re-enable it. This change should go
into the next release.
Odpovědět všem
Odpověď autorovi
Přeposlat
0 nových zpráv