I was curious if there was a little magic,
so, I tried "import foo.bar", with "interface bar" in the directory foo.
to see if i had to change the interface if i wanted to change the directory,
I wasn't all that suprised when it didn't work, but ran into a compile error

after some thought the way it is ensures a single -I/import paradigm
where allowing
for lazyness opens it up for -I. or -Ifoo to work with import bar and
import foo.bar,
consistency trumps lazyness so I wouldn't consider this change request,
you still have to change everywhere its used and whats 1 more file?

cat >import_test.bitc << EOF
bitc version 0.11
import test_import.bad_interface
def main.main(argv: string[]) = {
    0:int32
}
EOF

mkdir -p test_import && cat >test_import/bad_interface.bitc << EOF
bitc version 0.11
interface bad_interface {
  def something:int32
}
EOF

you'll have to add -I . to the makefiles or whatever the unit tests
didn't seem to have that.
thanks


test_import.bitc:3:0: Unable to import import_test.bad_interface
test_import.bitc:3:7: Internal Compiler Error. Interface
import_test.bad_interface has NOT been processed
bitcc: /usr/include/boost/smart_ptr/shared_ptr.hpp:409: T*
boost::shared_ptr< <template-parameter-1-1> >::operator->() const
[with T = Environment<AST>]: Assertion `px != 0' failed.
Aborted (core dumped)
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to