Charlie Sale
2017-12-17 17:18:04 UTC
Hello Guile,
I am learning about writing C extensions for Guile. While reading
through the manual, I was having trouble understanding how foreign
object definition works. Could someone please explain to me what
slots are and/or how they work, or perhapse provide links? Also,
guidance on how to implement these foreign objects in a guile program
would be greatly appriciated. The manual does not give an example of
using its image example in a guile program. Thanks!
Charlie
--
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFnmb2kBCACiwP49iyYabVIF8eDLX93MGyQhtteeBA7DqgqXB0HG1Vj0hXHp
8SQSEEr9f63gIhUI/YHAeNdt8ZcsYpJc6seFfgAVOBiKIKyU1WT5ttlWRCxGWzcK
/Xx+KGfxuq5ShXcIM6O6wKJFXo25Sph6CwxYQRMGjOBDVaeuWyMEHN00YjWgQh0w
ZPx6OICH7mTcFaHbvnMiuHXTWh98zaSor3MkpYlToHKeBDU5sUn3LmVaS6QM8W/v
gNf/t6OXY23m0K3MMlEGIiqTz+pqHxA/v4f/Ka1pNTyo1zHjZ6087GjzbXvyIbYP
YJXCN0EC1faH/u6e7+QL4I0qnMlY2RK0d0RnABEBAAG0JENoYXJsaWUgU2FsZSA8
Y2h1Y2tzLjgwOTBAZ21haWwuY29tPokBVAQTAQgAPhYhBCyHPM3HeQMw0oK0pgSK
fkslqXtXBQJZ5m9pAhsDBQkDwmcABQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJ
EASKfkslqXtXtLgH/A6mF9KErg14hJOaB+OcWME3JFSzKNxTkkAIM4mE59Dmlp9A
42z/pAnIY4xATVUdlhCjGlK7Q2qa1ldaevfDc0UjcDY0l1a6E+FLz/VHde02Kqvp
tYk3V2uum2p4P93vNLylEhYfEHOaSo8KHgyYrQus9Y6z4ndBX9V+UbbArLyrqaDQ
FwwC4wffkApgzb/dssOFACVXAyTuFkyU3LFYi35WDRe9B+9rRz5RZdN0qTpzZaCk
hzLq9wmkDU25AhvkbYGS3zg7P41J6sQA/EOp1QImCOsozu4E6UO/cFxwNemyic9H
B33PzP+1ca/FINlROtErmX6i16iJglxPiM2/UBG5AQ0EWeZvaQEIAMc95UxFFZ8X
j6kcT/oZxz6AJtuhx4gcFXcffNBNOJqTBBM/NtwDAZF/aI95OsIUwnOfpvBekDg6
FCMO2Ood8rbZGlANGBK6M+gcvJ041C0Dly4X3P1PrtbJsmyx04H73ZEHfldDTZ54
zbPNoNXb7+nFRDE2g0maxt7Bhbvy6FUetKNfEo4iuOTO/RSV8ub3YYgsnG+PwSJ5
j+TXkHavswJACWDjXUSMxtUmgORYQnjlO24ROTz99TdodJSF3gyhfS3bas4/5CQJ
1gjjRRMz9my259RYdwTaQPzRWvk7QErCY+8rc2g4YlKrCF5qasLogfWDrRR8RgFy
4Sf75nOus7cAEQEAAYkBPAQYAQgAJhYhBCyHPM3HeQMw0oK0pgSKfkslqXtXBQJZ
5m9pAhsMBQkDwmcAAAoJEASKfkslqXtX9UYH/i4AHw/r9kTQBlPxyBJAmWBMZFmU
UcwJPWUCcniU403vAZL2fKtzQQeGI1kPMAm4bi+xaGT267aRr6UPSeF5gnIXc/A1
Qa1Uvtc2Q1zwC+AYbTMET/h5cmnMJbhQKrm5+odHzJSft8EyqqFOK/91Yn6oLYLU
kdG0pdM89mUPw8th8pDHeBJLmEpfJFd3nT/dijt2yS5PQNgYL5RI9SBD8E2MzjY2
PdvlLgFd/LxVbi7N/IiQzRf6DSJ7hsuOILz24IGYqnOgcp/K6+/CFqtuTYNbNd3L
MhjaWVh5/A2jo/r3LKCuDF6ErNZ9dtFnx5EEW/dP593MY2XFW+Sg1uMPIpI=
=9hPf
-----END PGP PUBLIC KEY BLOCK-----
I am learning about writing C extensions for Guile. While reading
through the manual, I was having trouble understanding how foreign
object definition works. Could someone please explain to me what
slots are and/or how they work, or perhapse provide links? Also,
guidance on how to implement these foreign objects in a guile program
would be greatly appriciated. The manual does not give an example of
using its image example in a guile program. Thanks!
Charlie
--
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFnmb2kBCACiwP49iyYabVIF8eDLX93MGyQhtteeBA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