Changeset 9269 in project


Ignore:
Timestamp:
03/07/08 21:56:29 (12 years ago)
Author:
Kon Lovett
Message:

Added proc to get format argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/format-modular

    r9260 r9269  
    2929by escape, is found in the format string.
    3030
    31 To produce the functions included in the formatters, use {{formatter-function}} procedure.
     31To produce the functions included in the formatters, use the {{formatter-function}} procedure.
    3232
    3333To output info at the current position, the formatter functions should use the
    3434{{*formatter-out-foo}} procedures.
     35
     36To access an argument use the {{*formatter-next-argument}} procedure.
    3537
    3638For convenience, you can also use {{formatter-padded}} procedure when you
     
    8082
    8183Output the {{STRING}}. {{STATE}} is the internal formatter state object as passed to a {{formatter-function}}.
     84
     85== *formatter-next-argument
     86
     87 [procedure] (*formatter-next-argument STATE [INCREMENT])
     88
     89Consumes and returns the next argument. When {{INCREMENT}} is supplied it is
     90the number of arguments to consume, the default is {{1}}. {{STATE}} is the
     91internal formatter state object as passed to a {{formatter-function}}.
    8292
    8393== format
     
    469479== History
    470480
     481; 1.8 : Added '*formatter-next-argument' for argument access by an external formatter.
     482
    471483; 1.7 : Restore optimization (build the vector of formatter characters when the formatter is built, not whenever it is called). Export {{formatter-padded}}. Use doc-from-wiki.
    472484
Note: See TracChangeset for help on using the changeset viewer.