import and || doesn't work
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2349
Reported by Fredrik Noring, Roxen Internet Software noring@roxen.com
Bar.pmod:
int bar()
{
return 1;
}
foo.pike:
import ".";
import Bar;
int main()
{
int i;
// This doesn't work.
i = i || Bar.bar();
// This does on the other hand work.
if(!i)
i = Bar.bar();
return 0;
' }