Re: Terminolgy: the verb corresponding to "toString"



Roedy Green wrote:

What is the tersest way to document a toString style method.

I would like to say something like this:

"displays" the width and height in both metric and imperial measure

But it does not display anything, just prepares for display.

I have seen people also use misleading terms like "show" and "print".

What do you use?

The best I can come up with is "format". Sun uses this is the
SimpleDateFormat class.

To me, "format" implies some sort of complicated masks or a choice of
layouts.

"prepare" is too vague.

Perhaps a phase "convert x to a string"


Is there anything wrong with what Object.toString() says?

"Returns a string representation of the object. "
...
"The toString method for class Object returns a string consisting of..."

Seems to do pretty much cover it.

--
Nigel Wade
.



Relevant Pages

  • Re: A Simple BMP Converter
    ... "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal ... Private Sub cmdSysInfo_Click ... Open Registry Key ... > color bar in the color display. ...
    (comp.lang.basic.visual.misc)
  • Re: help collecting data.
    ... Dim GetC As String ... the code in the cell that I want the order numbers(info from column C ... "Otto Moehrbach" wrote: ... display them both, seperated by a comma ...
    (microsoft.public.excel.misc)
  • Re: Output data from multiple records in a table
    ... > Dim rsR As DAO.Recordset ... > Dim strSQL As String ... > such as display it in a textbox on your form. ...
    (microsoft.public.access.modulesdaovba)
  • Need help with GridView and LDAP/GC
    ... I could do the search with GC, and then lookup more ... DirectoryEntry searchRoot = new ... // Add search string if specified. ... // Display Name ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HUD Text in Virtual Reality Toolbox viewer window
    ... A few people recently asked us how to display continuously changing text in VR Viewer during Simulink simulation. ... You can define a dummy object whose fields correspond to the types of the values you want to display The signal is then sent to virtual scene using the VR Sink block, in VRML file is routed to a script that does the conversion to the text and updates the value of the Text node string displayed in the scene. ...
    (comp.soft-sys.matlab)