Rob: Suggestions for Euphoria 2.6

new topic     » topic index » view thread      » older message » newer message

Possible improvements and new features for Euphoria 2.6
and other products
-------------------------------------------------------

* Assignment on declare ability (exp: integer foo = 345)
* 32 Bit integer data type (same as a LONG in C) (not 31 bits)
* Boolean data type (exp: boolean foo)
* Improvement(s) with namespace feature
* Case & switch feature /w break statement <(*)>
* Increase nested include limit to 50 (from 30) <(**)>
* Significant speed improvement in Euphoria front-end
* Minor speed improvements in C back-end
* Minor speed improvements on certain standard library ruitines
* Minor speed/code generation improvements on translators and binder
* Lots of bug fixes for everything (of course)
* A greatly improved Windows installer (or no installer at all,
  just maybe a zip file with directions on setting up envi. var.)


<(*)> Examples for Euphoria Case & Switch feature
--Example #1:
--~~~~~~~~~~~
include get.e

integer answer, halt

answer = prompt_number("What is 8x4 equal? ", {0,50})
switch(answer)
    case 30 :
        puts(1, "Man your dumb!\n")
        break
    case 31 :
        puts(1, "Close but no money!\n")
        puts(1, "\n\t try again")
        break
    case 32 :
        printf(1, "The answer is: %d, so you're correct",
               {answer})
        break
    defualt :
        puts(1, "Your dead wrong, I tell ya.\n")
end switch

halt = wait_key()
clear_screen()

-------------------------------------------------------
--Example #2:
--~~~~~~~~~~~
include get.e

sequence grades, halt

grades = prompt_string("How good are your grades? ")
switch(grades)
    case "excelent" :
    case "good" :
        puts(1, "Good job, keep up the good work.\n")
        break
    case "average" :
        puts(1, "An average student is ok.\n")
        break
    case "poor" :
        puts(1, "Get your act together man!\n")
        break
    default :
        puts(1, "What kind of grade is that?\n" &
                "Ask the teacher(s) then tell me.")
        break
end switch

halt = wait_key()
clear_screen()

-------------------------------------------------------

<(**)>

Some large libraries (exp: wxEuphoria) could reach the
30 include limit. 30 is alot but just to be on the safe
side increase it to 50 or more.

Vincent

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu