Why non-default arguments can't follows default argument?
为什么非默认的参数可以不遵循默认参数?
A default argument doesn't change the number of parameters.
默认实参并没有改变形参的个数。
It is not permitted to declare a method parameter with a default argument.
不允许声明具有默认参数的方法参数。
We can specify default argument (s) in either the function definition or declaration.
既可以在函数声明也可以在函数定义中指定默认实参。
Functions can have default arguments, as shown for the value argument of the compute function.
函数可以有默认参数,如compute函数的值参数所示。
The compiler will automatically supply the default argument value for the omitted argument.
编译器自动将默认实参的值提供给被忽略的实参。
Default arguments are arguments and are treated the same way as any other argument during function matching.
默认实参也是实参,在函数匹配过程中,它的处理方式与其他实参一样。
Most languages with default argument values only allow constants or other values that can be determined at parse-time.
大多数支持默认参数的语言只允许编译时能决定的常量或者值作为默认值。
If a default argument is provided in the parameter list of a function definition, the default argument is available only for function calls in the source file that contains the function definition.
如果在函数定义的形参表中提供默认实参,那么只有在包含该函数定义的源文件中调用该函数时,默认实参才是有效的。
The number of hours that qualify as "recently" is configurable as a query argument, with the default being 12 hours.
标为 “最近”的小时数,是作为一个查询论据而可设置的,其默认值是12 小时。
If no constructors are specified in a mixin instantiation, the default zero-argument (zeroary) constructor is assumed.
如果在mixin实例化中没有指定任何构造器,那么就假定是缺省的不带参数的(zeroary)构造器。
You can override this default location with the -keepAppDirectory argument which, if overridden, will reinstall the applications to their original location.
您可以使用 -keepAppDirectory 参数覆盖此缺省位置,此时,应用程序将被安装到它们的原始位置。
Having two methods seems a bit wasteful. It would be nice if we could eliminate the second joiner method and declare that the separator argument in the first joiner has a default value.
写两个函数似乎有点浪费,如果我们能消除第二个joiner方法,在第一个jioner方法里为separator参数声明一个默认值,那就太好了。
The SetMargins final argument indicates that you're overriding the default page margins with our own values.
SetMargins最终参数表明您正在用自己的值来重写默认页边距。
By default, the end-of-file string is an underscore (_); if that character is sent as a single input argument, everything after it is ignored.
缺省情况下,文件结束字符串是下划线(_);如果将该字符作为单个输入参数来发送,则它之后的所有内容将被忽略。
By default, it runs until native memory is exhausted; to make it finish, pass a run time in seconds as a command-line argument.
默认情况下,它会一直运行直到本机内存耗尽;要让它停止,将运行时间(以秒为单位)作为命令行参数传递给它。
If and when they have a disagreement or argument, and if they can't resolve it, happy couples default to trusting and forgiving rather than distrusting and begrudging.
当双方意见分歧,发生争吵而无法解决的时候,幸福夫妻会选择信任与原谅,而不是争辩与嫉妒。
You can use the line of code shown in Listing 6 to specify a default value for an argument that is absent.
您能够使用清单6中所示代码行来为缺失的参数指定默认值。
The constructor examines each property in its parameters argument; for each one, if the property exists in the prototype, then its value overrides the parameter's default value.
构造方法在它的parameters参数中检查每个属性;对于每个属性,如果它存在于原型中,那么它的值覆盖参数的默认值。
If it is called with no input argument, then it will use a default filename called rss_feed_sources.xml.
如果在没有输入参数的情况下被调用,它将使用一个名为rss_feed_sources . xml的默认文件名。
The Hello object has no method or member object called world, so the world portion of the URL is passed in as a positional argument to that object's default method.
对象Hello没有叫做world的方法或者成员对象,所以这个URL的world部分作为那个对象的default方法的位置参数被传递进来。
Priority is an optional integer argument that can be used to specify the order in which the functions associated with a particular filter are executed (default: 10).
priority参数是一个可选的整型参数,他用来指明在结合特定事件的多个函数中,当前函数被执行的顺序(默认为10)。
Priority is an optional integer argument that can be used to specify the order in which the functions associated with a particular action are executed (default: 10).
priority参数是一个可选的整型参数,他用来指明在结合特定事件的多个函数中,当前函数被执行的顺序(默认为10)。
An optional integer argument that can be used to specify the order in which the functions associated with a particular filter are executed (default: 10).
priority参数是一个可选的整型参数,他用来指明在结合特定事件的多个函数中,当前函数被执行的顺序(默认为10)。
As discussed previously, if you don't give a command-line argument, the application will use the default feed sources input XML file (rss_feed_sources.xml).
我们在前面讲过,如果没有提供命令行参数,那么此应用程序将会使用默认的提要源输入xml文件(rss_feed_sources . xml)。
This handler prevents the default event (submitting the form) from being fired, sets the value of the extra ajax argument to 1, and makes an ajax Request using the original form for the URL and data.
这个处理程序阻止默认事件(提交表单)触发,将额外的ajax参数的值设置为1,使用原始表单发出一个ajax请求以获取URL和数据。
This handler prevents the default event (submitting the form) from being fired, sets the value of the extra ajax argument to 1, and makes an ajax Request using the original form for the URL and data.
这个处理程序阻止默认事件(提交表单)触发,将额外的ajax参数的值设置为1,使用原始表单发出一个ajax请求以获取URL和数据。
应用推荐