Difference between revisions of "Template talk:Function"
Jump to navigation
Jump to search
→ReturnVal
imported>SnakeChomp (→Discussion about individual fields: Arguments) |
imported>SnakeChomp |
||
Line 41: | Line 41: | ||
Currently, if the return value is omitted this will show an error. If it's left empty it will show the empty braces () Haama suggested at the CS Wiki, if it's filled in it will obviously be filled in. I've chosen to fill in ''void'' in the example because I think that's clearer. Any thoughts? | Currently, if the return value is omitted this will show an error. If it's left empty it will show the empty braces () Haama suggested at the CS Wiki, if it's filled in it will obviously be filled in. I've chosen to fill in ''void'' in the example because I think that's clearer. Any thoughts? | ||
<br/>--[[User:Qazaaq|Qazaaq]] 23:26, 12 December 2008 (UTC) | <br/>--[[User:Qazaaq|Qazaaq]] 23:26, 12 December 2008 (UTC) | ||
:I changed the template today so that if returnType is set to "void" nothing will be shown for return information as opposed to (void) appearing. If it is omitted an error will still be shown though. I don't think its necessary to explicitly show (void) or () or anything at all when the function has no return value. The fact that nothing is shown for return value (and the summary won't say anything about a return value either) should be enough indication that it doesn't return a value. | |||
:--[[User:SnakeChomp|SnakeChomp]] 00:24, 31 January 2009 (UTC) | |||
===CategoryList=== | ===CategoryList=== |