• Re: How to use srfi-105 with chicken scheme ?

    From Alain De Vos@21:1/5 to All on Thu Nov 11 10:06:34 2021
    (import srfi-105)
    (display { 1 + 1 } )

    returns,
    Warning: literal in operator position: (1 + 1)
    Warning: Invalid procedure
    At the toplevel,
    In procedure call:
    (1 scheme#+ 1)
    The procedure expression does not appear to be a callable.
    This is the expression:
    1
    The expected type is:
    (* * -> *)
    The actual type is:
    fixnum
    Error: call of non-procedure: 1
    Call history:
    test01.scm:1: chicken.load#load-extension
    srfi-105.scm:2: chicken.load#load-extension

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alain De Vos@21:1/5 to All on Thu Nov 11 09:30:25 2021
    When i try :

    (display {1+1})

    it does not compile with csc5


    https://srfi.schemers.org/srfi-105/srfi-105-1.2.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alain De Vos@21:1/5 to All on Thu Nov 11 09:58:29 2021
    I have run as root :
    # chicken-install5 srfi-105
    Maybe i still have to do something else ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vasilij Schneidermann@21:1/5 to All on Sat Dec 11 01:40:29 2021
    (import srfi-105)
    (display { 1 + 1 } )

    returns,
    Warning: literal in operator position: (1 + 1)
    Warning: Invalid procedure
    At the toplevel,
    In procedure call:
    (1 scheme#+ 1)
    The procedure expression does not appear to be a callable.
    This is the expression:
    1
    The expected type is:
    (* * -> *)
    The actual type is:
    fixnum
    Error: call of non-procedure: 1
    Call history:
    test01.scm:1: chicken.load#load-extension
    srfi-105.scm:2: chicken.load#load-extension

    SRFI-105 defines a reader extension. To use one in compiled code, you need to load the code providing it before compilation. In this case, with `csc5 -X srfi-105 test01.scm`.

    Feel free to ask questions specific to CHICKEN Scheme on our IRC channel (#chicken on libera.chat) or mailing list (chicken-users@nongnu.org).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)