1. question about ver. 405

If a user downloads eu version 405 ( WITH OUT OPENWATCOM )

and does a search of all the files in the download many

of them contain ,, ( DOUBLE COMA ) inside the parameters ?

What is the purpose of this ?

new topic     » topic index » view message » categorize

2. Re: question about ver. 405

BRyan said...

If a user downloads eu version 405 ( WITH OUT OPENWATCOM )

and does a search of all the files in the download many

of them contain ,, ( DOUBLE COMA ) inside the parameters ?

What is the purpose of this ?

HERE IS AN EXAMPLE FROM pathopen.e

conf_path = canonical_path( file,,CORRECT )  
new topic     » goto parent     » topic index » view message » categorize

3. Re: question about ver. 405

BRyan said...
BRyan said...

If a user downloads eu version 405 ( WITH OUT OPENWATCOM )

and does a search of all the files in the download many

of them contain ,, ( DOUBLE COMA ) inside the parameters ?

What is the purpose of this ?

HERE IS AN EXAMPLE FROM pathopen.e

conf_path = canonical_path( file,,CORRECT )  


Missing parameters. If the function specifies...

foo(object 1 = "one", object 2 = "two",object 3 = "three") 

you can call foo with only the first and last by ...

foo("one",,"two") 



useless

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

4. Re: question about ver. 405

The only problem is there are 69 files like this, including some HTML files

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

5. Re: question about ver. 405

BRyan said...

The only problem is there are 69 files like this, including some HTML files

What is the problem?

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

6. Re: question about ver. 405

Derek:

READ ABOVE REPLY #2 ABOVE

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

7. Re: question about ver. 405

BRyan said...

Derek:

READ ABOVE REPLY #2 ABOVE

You haven't explained what the problem is. As useless said, missing parameters get the default values. If there is no default value, then you get an error. This is not a problem.

Matt

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

8. Re: question about ver. 405

Oh then it is ok to distribute code that has 69 files in the source and includes and docs that have double commas ????

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

9. Re: question about ver. 405

BRyan said...

Oh then it is ok to distribute code that has 69 files in the source and includes and docs that have double commas ????

Sure. Why not? It's a feature of the language now, just like lots of other stuff, like dollar signs.

Matt

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

10. Re: question about ver. 405

BRyan said...
BRyan said...

If a user downloads eu version 405 ( WITH OUT OPENWATCOM )

and does a search of all the files in the download many

of them contain ,, ( DOUBLE COMA ) inside the parameters ?

What is the purpose of this ?

HERE IS AN EXAMPLE FROM pathopen.e

conf_path = canonical_path( file,,CORRECT )  

An extra coma is indicative of an "emptyness" and in many languages, including euphoria is interpreted as a default value.
There is nothing wrong in this way of writing.

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

11. Re: question about ver. 405

EUWX said...

An extra coma is indicative of an "emptyness" and in many languages, including euphoria is interpreted as a default value.
There is nothing wrong in this way of writing.

Do you know where this documented in euphoria ?

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

12. Re: question about ver. 405

BRyan said...
EUWX said...

An extra coma is indicative of an "emptyness" and in many languages, including euphoria is interpreted as a default value.
There is nothing wrong in this way of writing.

Do you know where this documented in euphoria ?

Procedures

Matt

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

13. Re: question about ver. 405

Thanks Matt !

I think that is bad idea and I think it will come back

to haunt you in big programs.

It looks like its going to cause you lots of head aches in parsing.

Good Luck !

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

14. Re: question about ver. 405

BRyan said...

Thanks Matt !

I think that is bad idea and I think it will come back

to haunt you in big programs.

It looks like its going to cause you lots of head aches in parsing.

Good Luck !

There were some bumps while it was being developed, but I think it's fairly mature now. I don't see any reason why it would be removed in the future. It's very handy.

Matt

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

15. Re: question about ver. 405

It's not only handy, it is nearly essential if you want to have default params. And without default params, large programs such as EuGTK would be nearly unworkable. So no, it isn't 'Asking for trouble' - quite the opposite, in fact.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu