Re: export & public

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

...

Key word "up" means "one level UP to user of the library".

Key word "and_up" means "one or more levels UP to user of the library".

Just try to explain your "export" and "public" to EU new comer, and you will come to these short formulas above (but after reading pages and pages of docs and discussions).

Um, "up" and "and_up" are two very, very confusing words to me and I've explored many programming languages. "export" and "public" are very common programming words and are very easily explained to anyone, a Eu newbie or veteran. export = make the item visible to it's parent (i.e. the opposite of import) and only to it's parent, no matter what it's parent thinks should be done with it. public = make it available to it's parent and allow it's parent to do with it whatever it thinks is necessary, after all it is usable to the general public.

I guess I would be open to a different word for public and or export but we thought long and hard before making that choice. up and and_up are not better choices. If we come up with better choices, I would be up for more conversation on the subject.

Jeremy

Jeremy, sorry, but there is one question more: who or what is that "parent" in EU programming?

I just see one dictionary:

http://www.merriam-webster.com/dictionary/parent

Yet another dictionary:

http://en.wikipedia.org/wiki/Parent

Then docs of our old good EU:

http://www.rapideuphoria.com/cgi-bin/guru.exu?refDoc=on&libDoc=on&otherDoc=on&keywords=parent

There is just nothing about any object, similar to new my problem just with your new the "parent" word.

Or you want me to learn many programming languages just to understand "export", "public" and now "parent" in 4.0?

Good news - before programming in EU 4.0, learn please the jargon, i.e. traditional Mumbo-Jumbo, from C, C# etc .....

There are main file (users program) and library files in EU.

What is that "parent", as you say. Library or main file?

My new main file is almost empty now, is it a "parent"?

No, I think.

Ok, I've just included win32lib.

Is my main almost empty file "parent" for win32lib?

Oh, no-no, oh, sorry-sorry, Big Dave is Parent of win32lib...

And so on with that "parent".

Sorry Jeremy, I hope we all and you do have some sence of humor smile

But:

--lib.e 
up procedure first() -- will work in upper file  
 ... 
end procedure 

will work in my main file, if I write:

--main.ex -- young (new) program 
include lib.e -- old good lib, what is a "parent" ? 
first() 

Do you see, your "parent" just seems to be from that series of those Mumbo-Jumbo words of conventional languages?

Same as "public" and "export" (the opposite of "import") smile

I'll use Russian "vyshe" and "i_vyshe" i.e. "up" and "and_up" in bilingual version.

I do know who is father and who is son.

Regards, Igor Kachan kinz@peterlink.ru

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

Search



Quick Links

User menu

Not signed in.

Misc Menu