1. global statement - How to use?

Using global variables in previous versions of Euphoria, was pretty easy: see this code:

include one.e 
xxxx = yyyy -- yyyy is declared as global inside one.e and visible here 

Now I installed version 4.0.5 and it no longer works.

I tried to read the manual to use the yyyy variable as global, but did not understand anything.
How do I declare as global inside of file one.e?
How do I use a variable declared inside the file include one.e?

Could someone please pass me an example?

Thanks in advance

new topic     » topic index » view message » categorize

2. Re: global statement - How to use?

sergelli said...

Using global variables in previous versions of Euphoria, was pretty easy: see this code:

include one.e 
xxxx = yyyy -- yyyy is declared as global inside one.e and visible here 

Now I installed version 4.0.5 and it no longer works.

I tried to read the manual to use the yyyy variable as global, but did not understand anything.
How do I declare as global inside of file one.e?
How do I use a variable declared inside the file include one.e?

Could someone please pass me an example?

Thanks in advance

I should still work. The meaning of global has not changed.

In my testing it works just fine. Can you show us what you have in one.e?

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

3. Re: global statement - How to use?

Hi Derek

Sorry, it was my inexperience using globla and public statment.

Please, I want to delete this topic.

Thank you for your attention.

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

4. Re: global statement - How to use?

If you did not understand the manual then it is the manual's fault.

Can you point out the exact section that was causing some confusion?

Now that you understand global better can you suggest an improvement to the manual?

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

5. Re: global statement - How to use?

_tom said...

If you did not understand the manual then it is the manual's fault.

Can you point out the exact section that was causing some confusion?

Now that you understand global better can you suggest an improvement to the manual?

Sorry, but I do not think I can help, because I'm not fluent in the English language.

Certainly, this is the reason for my failure when not understood the manual.

Surely, the Manual of Language Euphoria is good.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu