coldfusion - How to specify argument attributes in CFscript? (CF9) -


In CF 9 Doctor:, it says:

  / ** * an indication * Metadata Validation ... * / Access Return Type Function Function Name (arg1Type arg1Name = "defaultValue1" arg1Attribute = "attributeValue .... ., Arg2Type arg2Name = "defaultValue2" arg2Attribute = "attributeValue ..., ...) functionAttributeName =" attributeValue "... {body content}  

How do you specify Arg1Attribute ? I tried this:

  public void function setFirstname (string firstname = "displayname =" first name ") {}  

but it does not work .

Also, how can you translate it into script-style?

    gt; & lt; / cffunction & gt;  

I tried:

  function setperson (Com.Person person) {}  

And it does not work too. "You can not use a variable reference in this context with the operator" "

It is a documentation bug, no way to provide metadata for an argument in script block You can not signal, require, type, and defame, but nothing. I am asking about com Mark Mandel suggested importing and using only the person.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -