Re: export & public

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

Having given this some considerable thought, I can't help thinking that the new, modernised, include system is somewhat inelegant.

I've got a program (BBCMF) that uses almost 100 included files, and I find the new include system to be useful, especially in maintaining the modularity of the include files.

Think of it this way: each include file makes sure to include all the files it needs, so you don't have to in your main program. You just plug it in and it's ready to go.

ChrisB said...

Look at the problems that have been had with Langwar (admittedly the current problem is not an include problem, but one of memory management).

This is probably an issue of learning/adapting to a new method. There's a learning curve for any programming language, and there will be a slight one for Euphoria 4.0. I experienced it and it was painless, quick, and easy.

ChrisB said...

The current idea seems to be to include whatever files you want to include, within the files that you include (this is why its inelegant - its moved away from the beautiful simplicity of eu3).

That beautiful simplicity had problems of its own, made apparent as programs grow in size and the need for a multitude of libraries increased. Eu4 is still beautiful and simple. But now it has the mechanisms in place for advanced uses that Eu3 did not have.

ChrisB said...

...will just include std.e

That's why it's there, so don't fret it. Use it. smile

ChrisB said...

I certainly do not hope to attain the heady heights of computer programming attained by Derek and Matt, but I am no newby with either programming or euphoria, and I suspect that if I am having problems, then many other people will be too.

I'm basically in that position, and I have had no problems. I figure if I can do it, so can you. smile

ChrisB said...

...or add another directive that allows the 'sloppy' include method.

I think we're wanting to get away from what was "not good" with Eu3, so I don't think we'll be going back to it.

ChrisB said...

...that include system is going to be a nightmare.

I thought this at first as well. But it's really not.

ChrisB said...

I suspect that there will be drop off of current users, or at least a reluctance to leave 3.x behind, despite the advantage that 4 offers.

I would be very surprised if a Eu3 programmer experienced Eu4 and decided not to switch.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu