Re: let binding with c

Laurent Bloch <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <20161019105015.49575d2e@beatrix>
Hi,

Le mercredi 19 octobre 2016 Damien MATTEI a écrit ceci :

> i'm using bigloo4.2c and have had a similar issue last year,i'm using bigloo with the java option enabled to generate JVM byte code and i noticed that 
> when creating string variables with nested define in function ,the code :
> 
> (define (ResultatMesuresFbeta bstr_identificateur bstr_objet)
>   
>   (display-var-nl "BiglooCode.scm :: ResultatMesuresFbeta :: bstr_identificateur = " bstr_identificateur)
>   (display-var-nl "BiglooCode.scm :: ResultatMesuresFbeta :: bstr_objet = " bstr_objet)
>     
>   (define len_bstr_identificateur (byte*-length bstr_identificateur))
>   (display-var-nl "BiglooCode.scm :: ResultatMesuresFbeta :: len_identificateur = " len_bstr_identificateur)
>   (display-var-nl "BiglooCode.scm :: ResultatMesuresFbeta :: (string? bstr_identificateur) = " (string? bstr_identificateur))
> 
>   (define identificateur (make-string len_bstr_identificateur))
>   ;;(define objet "")
> 
>   (set! identificateur  bstr_identificateur)
>   ;;(set! identificateur  (string-append bstr_identificateur))
> 
>   ;;(display-var-nl "BiglooCode.scm :: ResultatMesuresFbeta :: (string-append \"\" bstr_identificateur) = "  (string-append "" bstr_identificateur))
>   ;;(set! objet bstr_objet)

Hum, as far as I remember, nested define are only allowed at the
beginning of a body...

Cheers!

-- 
Laurent Bloch - http://www.laurentbloch.org - [email protected]
Si vous trouvez que l'éducation coûte cher, essayez l'ignorance !
(A. Lincoln)
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYBzPIAAoJEMUeFwJFU0xV4jYH/32HnRzlkbquCNSD6nxy97mH
aix+l907M1eRMvGoIF6hAsgt4dFyrMfFZELe+vFM67LXKbvP33BQBQ9C1UL9Nhgx
JEykr8QnvHFyRdVsx8XKC6ABRj+kA15WO+VR2vXAo6WmTwXePz8XN1dryQ8K3D3J
837jaPwHvYxG79hXCg7SNDnrhKA4zXnPTnS0g36SsscpE+tB+w9x/ebRlHTDzNoo
oB1P+9FQrDj1qxa4oSbyheApGlIhXQTMqxIbFW/u43o7bA7SIWA8vdh95aEjMNHE
w2Z2Rm5N0hm3Y5S2Xbb2xgU/Sv8+wEgkgnDCH0CGK5VAazZixaHsCh44geKzj7s=
=tBGA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.