1. OOEU
- Posted by Tom Mar 06, 2009
- 991 views
- Last edited Mar 07, 2009
In my "Think Euphoria" translation of "Think Python" my current problem is what to do about the OOP viewpoint of Python. OOEU will illustrate OOP concepts very nicely and allow me to create some Euphoria "imperative" vs "object oriented" examples.
When running the source-code with Euphoria 4 I got a machine exception error.
Mattis there a possibility of updating OOEU to a least run under Eu4?
2. Re: OOEU
- Posted by euphoric (admin) Mar 06, 2009
- 945 views
- Last edited Mar 07, 2009
Mattis there a possibility of updating OOEU to a least run under Eu4?
Yeah, Matt, what's the hold up?!?!
(ducks behind couch)
Tom, I think I attempted that "Think Euphoria" project at one point, but I too got bogged down by what did not apply to Euphoria. You're a brave man!
3. Re: OOEU
- Posted by jeremy (admin) Mar 06, 2009
- 928 views
- Last edited Mar 07, 2009
Tom, Looking at: http://rapideuphoria.com/lan.htm ...I see that "Method Euphoria" is the most popular OO addition. Maybe you would want to try and use it for the examples but include a statement letting people know that there are different OO libraries for Euphoria and that one individual syntax has not been "blessed" yet.
Following the Tcl world, they have/had the same problem. There were many OO libraries for Tcl but in 8.6 (in beta2 now), the core team finally "blessed" one and included it in the core (along with speed enhancements, built-in, and some syntax changes). I assume that something like that will happen with Euphoria as well.
In the meantime, explore Method Euphoria? That's my only suggestion. Oh, I just tried Method Euphoria and it works fine on 4.0.
Jeremy
4. Re: OOEU
- Posted by jacquesd Mar 06, 2009
- 919 views
- Last edited Mar 07, 2009
In my "Think Euphoria" translation of "Think Python" my current problem is what to do about the OOP viewpoint of Python. OOEU will illustrate OOP concepts very nicely and allow me to create some Euphoria "imperative" vs "object oriented" examples.
When running the source-code with Euphoria 4 I got a machine exception error.
Mattis there a possibility of updating OOEU to a least run under Eu4?
euphoria as no support for oop programming, so why don't you just skip that part.
Method euphoria is, in IMHO, the best effort done to introduce OOP to euphoria, But is still a kind of awkward.
5. Re: OOEU
- Posted by mattlewis (admin) Mar 06, 2009
- 916 views
- Last edited Mar 07, 2009
In my "Think Euphoria" translation of "Think Python" my current problem is what to do about the OOP viewpoint of Python. OOEU will illustrate OOP concepts very nicely and allow me to create some Euphoria "imperative" vs "object oriented" examples.
When running the source-code with Euphoria 4 I got a machine exception error.
Mattis there a possibility of updating OOEU to a least run under Eu4?
I believe the version at the head of the trunk works on v4. And yes, I plan to keep it up, at least until we can embed euphoria as a runtime scripting language inside a euphoria app.
Matt
6. Re: OOEU
- Posted by Tom Mar 06, 2009
- 969 views
- Last edited Mar 07, 2009
The reason I'm asking about OOEU is the built-in support for dot-notation. Dot-notation looks like the secret to happiness when using OOP. The dot notation in OOEU has an attraction in indexing sequences even if you do not think in terms of OOP.
OOEU is also interesting in that it is based around a "Euphoria object" rather than a "pointer to an OOP object". I am not fond of pointers!
Method Euphoria makes sense if you understand OOP to begin with. But, it would be harder to explain how it works in an introductory level book on computing.