1. question about ver. 405
- Posted by BRyan Oct 12, 2013
- 1695 views
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 ?
2. Re: question about ver. 405
- Posted by BRyan Oct 12, 2013
- 1685 views
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 )
3. Re: question about ver. 405
- Posted by useless_ Oct 12, 2013
- 1681 views
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
4. Re: question about ver. 405
- Posted by BRyan Oct 12, 2013
- 1660 views
The only problem is there are 69 files like this, including some HTML files
5. Re: question about ver. 405
- Posted by DerekParnell (admin) Oct 12, 2013
- 1671 views
The only problem is there are 69 files like this, including some HTML files
What is the problem?
6. Re: question about ver. 405
- Posted by BRyan Oct 12, 2013
- 1655 views
Derek:
READ ABOVE REPLY #2 ABOVE
7. Re: question about ver. 405
- Posted by mattlewis (admin) Oct 12, 2013
- 1635 views
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
8. Re: question about ver. 405
- Posted by BRyan Oct 12, 2013
- 1624 views
Oh then it is ok to distribute code that has 69 files in the source and includes and docs that have double commas ????
9. Re: question about ver. 405
- Posted by mattlewis (admin) Oct 12, 2013
- 1661 views
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
10. Re: question about ver. 405
- Posted by EUWX Oct 13, 2013
- 1562 views
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.
11. Re: question about ver. 405
- Posted by BRyan Oct 13, 2013
- 1510 views
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 ?
12. Re: question about ver. 405
- Posted by mattlewis (admin) Oct 13, 2013
- 1555 views
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 ?
Matt
13. Re: question about ver. 405
- Posted by BRyan Oct 13, 2013
- 1499 views
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 !
14. Re: question about ver. 405
- Posted by mattlewis (admin) Oct 13, 2013
- 1479 views
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
15. Re: question about ver. 405
- Posted by irv Oct 15, 2013
- 1411 views
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.