On 12/09/10 03:11, Dennis Wassel wrote:
> Hi list,

Hi Dennis,

> Backtrace:
> In foo.tpl:
>   42: 0* [string-append "double" ...
>   44: 1*  (string-pad "" (- 15 (string-length thistype)))
> 
> foo.tpl:44:16: In expression (string-pad "" (- 15 #)):
> foo.tpl:44:16: Unbound variable: string-pad

These are Guile messages.  It means that the "string-pad"
function is not defined.  It is probably part of some
library that has not been loaded.  To use it, you need to
determine how.  Something like this that _is_ used at
Guile startup:
   (use-modules (ice-9 common-list))

Also, I am not familiar with it because this is equivalent:

    Print('  <$
    (sprintf "%-15s%s.%s"
       thistype (get "inst") (get "name"))
    $>', 1)

finally, a little nit:

> (string-append
>             (. thistype)

The dot operator and parentheses are superfluous.

>             (. (string-pad "" (- 15 (string-length (. thistype)))))
>             (get "inst")
>             "."
>             (get "name")
>         )

------------------------------------------------------------------------------
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to