Daniel W. Crompton
2015-06-27 21:47:50 UTC
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:
```
```
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
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: 0r->main(1,({}));
```
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