1. Phix news
- Posted by petelomax Jun 29, 2017
- 1516 views
Just thought I might try and lift spirits a bit.
The next release of Phix will allow the following handy little thing:
{string name, integer id} = rhs
Which declares and assigns two new variables (of different types, obviously) on-the-fly.
There will also be a new regex engine and json module (both already available via bitbucket).
I have also just finished exception handling (try/catch) on the internal version, eg:
try integer i = 1/0 catch e printf(1,"%s (%s line %d)\n",{e[E_USER],e[E_FILE],e[E_LINE]}) end try puts(1,"Yes, I'm still running...\n")
Output:
attempt to divide by 0 (test.exw line 2) Yes, I'm still running...
That message you are seeing has in fact been sent via the new builtin throw().
Must now knuckle down to lnx64 testing (including testing the above), which is the big barrier to a new release.
Pete
2. Re: Phix news
- Posted by petelomax Jun 30, 2017
- 1482 views
I've also updated the online manual: http://phix.x10.mx/docs/html/try.htm
3. Re: Phix news
- Posted by ryanj Jul 03, 2017
- 1370 views
Sounds good! I should definitely find some time to learn how it works and see how i could get RedyCode to run on it and be able to build applications with Phix. I was speed-reading the Phix docs and noticed there are a few subtle differences i'll have to add to the syntax highlighter. I've been keeping my eye on this project from a distance, but i think it's time to take a serious look at it.
4. Re: Phix news
- Posted by petelomax Jul 03, 2017
- 1371 views
Sounds good! I should definitely find some time to learn how it works and see how i could get RedyCode to run on it and be able to build applications with Phix. I was speed-reading the Phix docs and noticed there are a few subtle differences i'll have to add to the syntax highlighter. I've been keeping my eye on this project from a distance, but i think it's time to take a serious look at it.
Thanks. Let me know what road-blocks you hit, and don't forget what I said here.
Pete