Cast "test.pike" to program failed (#1)

"Daniel W. Crompton" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <pikelang/Pike/issues/[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.