Discussion:
[Pike] Cast "test.pike" to program failed (#1)
Daniel W. Crompton
2015-06-27 21:47:50 UTC
Permalink
Discovered a bug

Cast "test.pike" to program failed in "/Development/study/pike/broke".
/usr/local/pike/7.8.700/lib/master.pike:1997:

```
int main(int argc, array argv) {
object r = ((program)"test.pike")();
r->main(argc,argv);
}
```

`test.pike`
```
int main() {
write("YAY!");
}
```

However, when run from hilfe it works fine:
```
object r = ((program)"test.pike")();
r->main(1,({}));
YAY!(1) Result: 0
```

Pike & Hilfe versions: Pike v7.8 release 700 running Hilfe v3.5 (Incremental Pike Frontend)

---
Reply to this email directly or view it on GitHub:
https://github.com/pikelang/Pike/issues/1
Daniel W. Crompton
2015-06-29 12:28:07 UTC
Permalink
Odd, I don't seem to be able to reproduce this now.

---
Reply to this email directly or view it on GitHub:
https://github.com/pikelang/Pike/issues/1#issuecomment-116636594
Arne Goedeke
2015-06-29 13:10:02 UTC
Permalink
Maybe it is possible that you tried from within a different directory before? If the file cannot be found in the current directory, it should give the error you posted.

---
Reply to this email directly or view it on GitHub:
https://github.com/pikelang/Pike/issues/1#issuecomment-116654058

Loading...