1. OOEU

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?

new topic     » topic index » view message » categorize

2. Re: OOEU

Tom said...

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! smile

new topic     » goto parent     » topic index » view message » categorize

3. Re: OOEU

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: OOEU

Tom said...

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: OOEU

Tom said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: OOEU

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu