1. Phix : poke2() issue
- Posted by ChrisB (moderator) Sep 01, 2017
- 1343 views
Hi Pete
Doing some fiddling with allegro, and get this error
C:\Phix\builtins\pAlloc.e:93 poke2(mem, s) ^ incompatible type for routine signature ...included by C:\Users\Practice\Dropbox\Euphoria\euAllegro-0.3\euallegrogpack\DODGEM.EXW, line 39
I've had a look, but can't see why this would be the case - any ideas.
Cheers
Chris
2. Re: Phix : poke2() issue
- Posted by petelomax Sep 01, 2017
- 1360 views
No idea. I found a copy of dodgem.exw here that seems to work fine, with a couple of minor edits I did ages ago, so I uploaded it to PCAN:
http://phix.x10.mx/pmwiki/pmwiki.php?n=Main.EuphoriaGamesPack
Pete
EDIT: I've now reproduced this here, will investigate a bit further
EDIT2: Found it: wrapper.e contains global procedure poke2(atom addr, integer num), which needs commenting out. (the compiler did issue a warning about that!)
EDIT3: Having got your repackaged and newer euallegro working, I realised it is noticeably better, so I uploaded my copy (http://phix.x10.mx/pmwiki/pmwiki.php?n=Main.EuallegroRepackaged) and marked the above entry as superceded.
3. Re: Phix : poke2() issue
- Posted by ChrisB (moderator) Sep 01, 2017
- 1310 views
Hi Pete
Thanks.
So the program (ie wrapper's cersion of poke2() ) overrode an inbuilt declaration with no warning. That would be awkward to find if you weren't aware of this. Is there a way of flagging that to the user when an error is produced?
Cheers
Chris
4. Re: Phix : poke2() issue
- Posted by petelomax Sep 01, 2017
- 1290 views
I've just this second been editing the previous post about all that
Pete
5. Re: Phix : poke2() issue
- Posted by ChrisB (moderator) Sep 01, 2017
- 1296 views
Hi
Just so everyone's clear, version 4.2 Allegro was Ray Smith's, and I have had nothing to do with version 5.
Cheers
Chris