Re: perplexing syntax-rules bug

2014-12-20 Thread Marco Maggi
Wette, Matthew R (3441) wrote: Sorry to bug, I can't figure out why sval in the second evaluation of sect is bound to the sval from the first evaluation of sect. Anyone understand? This is guile 2.0.11. -- Matt (define-syntax sect (syntax-rules () ((sect name expr ...) (let ((sval

R6RS libraries: incorrect renaming of exported bindings?

2014-05-21 Thread Marco Maggi
Ciao, on my x86_64-unknown-linux-gnu I have installed the distribution package guile-2.0.11.tar.gz, but, unless I am making a dumb mistake, I get: $ guile --version guile (GNU Guile) 2.0.9 ... but this is not the problem. I am trying again to make the Infix package[1]

[OT] Re: Question on mutability of argument lists

2014-03-20 Thread Marco Maggi
Niels Möller wrote: And somthing similar could be done even if the calling convention is the natural one, that the caller conses the arguments onto a list as they are evaluated, and passes that list to the implementation of the procedure. The function prologue in the callee would then extract

Re: Question on mutability of argument lists

2014-03-19 Thread Marco Maggi
Niels Möller wrote: When specifying the use of rest arguments for procedures (r7rs, sec 4.1.4), it seems to imply that the passed argument list is mutable? Yes, because it states the sequence of actual arguments is converted into a newly allocated list, and the list is stored in

on coding a portable R6RS package supporting Guile and its FFI

2013-01-17 Thread Marco Maggi
://marcomaggi.github.com/docs/vicare.html/iklib-pointers.html -- Marco Maggi

error loading (system foreign) in r6rs mode

2013-01-16 Thread Marco Maggi
) (newline) succeeds with no problems. Is (system foreign) special? -- Marco Maggi

Re: error loading (system foreign) in r6rs mode

2013-01-16 Thread Marco Maggi
simple and easy. Thanks. -- Marco Maggi

Re: ANN: fectors v0.1

2012-07-08 Thread Marco Maggi
. The following is a test file for Vicare, just place it in fectors' source directory and do: $ vicare -L $PWD test-vicare.sps ;;; test-vicare.sps --- Functional Vectors: tests with Vicare Scheme ;; Copyright (C) 2012 Marco Maggi marco.maggi-i...@poste.it ;; Author: Marco Maggi marco.maggi-i

Re: Pattern matching issues

2011-07-12 Thread Marco Maggi
)) (newline))) but at present multiple ellipses are not supported at the same level (that is in the same list or the same vector). It is possible to do it, but a policy (greedy/non-greedy) must be adopted to solve ambiguous cases and it gets complicated. HTH -- Marco Maggi

error building from master checkout

2011-04-07 Thread Marco Maggi
to follow the master branch to get the latest thought to be usable? -- Marco Maggi

[r6rs] with-syntax should have a body like let

2011-03-02 Thread Marco Maggi
/psyntax.scm:896:30: In procedure dobody: module/ice-9/psyntax.scm:896:30: Syntax error: unknown location: definition in expression context in subform b of 1 but it is my understanding that WITH-SYNTAX has a body like let. -- Marco Maggi

Re: List functions

2010-12-02 Thread Marco Maggi
Marco Maggi wrote: Hans Aberg wrote: I am writing on a parser that translates normal function syntax in to Guile code. I do not know which scenario you are working with, but it is perfectly possible to convert the input syntax: ((sin , cos , tan) 1.2) Sorry, I have been too quick: you

Re: List functions

2010-12-02 Thread Marco Maggi
((sin , cos) 1.2 Once you have H you can write a DEFINE/H syntax which works just like the standard DEFINE but accepts in its body the modified syntax: (define/h (doit x y) (display (+ x ((sin , cos) y The tool to do it is the syntax-case macro system. HTH -- Marco Maggi

Re: [r6rs] abusive request for help on unbound variable error

2010-11-19 Thread Marco Maggi
Marco Maggi wrote: This is wrong; it is the guile-r6rs executable that, when used interactively, does not import the R6RS bindings by default as I expected. This is my own script, it does not come with Guile... -- Marco Maggi

Re: [r6rs] quest to make the makers package work

2010-06-17 Thread Marco Maggi
.) #f] ERROR: No matching modules found. make: *** [gtest] Error 1 -- Marco Maggi

Re: [r6rs] quest to make the makers package work

2010-06-08 Thread Marco Maggi
in (import (rnrs) (lib)) is it actually possible to load libraries? -- Marco Maggi

building from a git clone

2010-06-08 Thread Marco Maggi
libtool (GNU libtool) 2.2.8 and git show prints as last commit a4082ab57e81c1826906c1a8601593e8dea5078c. TIA -- Marco Maggi

Re: [r6rs] quest to make the makers package work

2010-06-08 Thread Marco Maggi
is: #!r6rs (import (rnrs) (rnrs eval) (makers makers)) -- Marco Maggi

Re: building from a git clone

2010-06-08 Thread Marco Maggi
/local fixed it. For some reason it seems the gettext.m4 file, with AM_GNU_GETTEXT definedin it, under /usr/shared/aclocal/gettext.m4 was not found by the other tools installed under /usr/local. Thanks. -- Marco Maggi

[r6rs] no way to turn of coding: comment interpretation?

2010-06-07 Thread Marco Maggi
... and just go with UTF8? Many of my files start with ;;; -*- coding: utf-8-unix -*-. -- Marco Maggi

[r6rs] on libraries extensions and search paths

2010-06-07 Thread Marco Maggi
). Is there a plan to add this? Many R6RS implementation allow the selection of a search path for libraries through an environment variable; what about GUILE_R6RS_LIBPATH? -- Marco Maggi

[announce] GEE/NURI version 0.4b0

2007-12-08 Thread Marco Maggi
into the Networking section. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

[announce] GEE/Email version 0.4b0

2007-12-08 Thread Marco Maggi
TDGNU General Public License version 2, or (at your option) any later version./TD/TR TRTDIrequires/I/TD TDGuile 1.8/TD/TR /TABLEP -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing

[announce] GEE/Infix version 0.4b0

2007-12-08 Thread Marco Maggi
TRTDIrequires/I/TD TDGuile 1.8/TD/TR /TABLEP -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

[announce] GEE/JSON version 0.4b0

2007-12-07 Thread Marco Maggi
later version./TD/TR TRTDIrequires/I/TD TDGuile 1.8, JSON 0.7/TD/TR /TABLEP -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo

[announce] GEE/CSV 0.4b1

2007-12-07 Thread Marco Maggi
Languages, and neither for GEE/Streams, I suggest Scheme Language Extensions. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile

Re: [announce] GEE/Streams 0.1

2007-12-06 Thread Marco Maggi
closely at what you have, but have you seen the paper: http://cm.bell-labs.com/cm/cs/who/wadler/papers/lazyinstrict/lazyinstrict.ps It had the off-by-one error in it. Fixed. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb

Re: the future of Guile

2007-12-06 Thread Marco Maggi
it. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: the future of Guile

2007-12-05 Thread Marco Maggi
in a few hours. @Neil Jerram 8c. This is for my own ego: yeah, yeah, yeah! Define: typedef SCM scm_t; Surely there's an elisp incantation that would make it kiss SCM for you? Of course! :-) Marco Maggi wrote: 1. TCL has nice programs that allow to distribute single file auto

Re: the future of Guile

2007-12-05 Thread Marco Maggi
with a tutorial from the about page. I am not sure that voting on topics can work though. This is the Net not a polite society... One thing that would be useful is to have a page with a roadmap like this one http://wiki.tcl.tk/12753 for Tcl. -- Marco Maggi Now feel the funk blast! Rage Against

Re: the future of Guile

2007-12-05 Thread Marco Maggi
. Records are too common to be removed from the core: almost everyone would end up loading that module. This surprises me. I thought that they were a rarely used feature because they are unschemey :-) and because of the existence of GOOPS. -- Marco Maggi Now feel the funk blast! Rage Against

[announce] GEE/Streams 0.1

2007-12-04 Thread Marco Maggi
dispatch methods for streams (unfortunately there is no way to select a base sequence class); streams can be implemented with both a Scheme or C producer function. https://gna.org/projects/gee http://download.gna.org/gee/gee-streams/gee-streams-0.1b5-src.tar.bz2 -- Marco Maggi Now feel

help with methods dispatching bug

2007-12-03 Thread Marco Maggi
on the primitive generic functionality. This is probably caused by a mess in my C code, but I am failing to find the problem. Can someone point me towards the code in Guile that does method invocation? It should be somewhere in the evaluator... TIA -- Marco Maggi Now feel the funk blast! Rage Against

the future of Guile

2007-12-03 Thread Marco Maggi
-extracting-and-running archives holding the core executable, shared libraries, pure TCL modules and some data files (search for tclkit). 2. Resurrect Serveez. 3. Resurrect SCWM (Scheme Constraints Window Manager). -- Marco Maggi Now feel the funk blast! Rage Against the Machine

Re: should accept be protected with fport_wait_for_input?

2007-12-03 Thread Marco Maggi
socket.) *Note File Status Flags::, for information about nonblocking mode. HTH -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman

Re: compiled closures status

2007-11-27 Thread Marco Maggi
Ciao, Ludovic Courtès wrote: Marco Maggi [EMAIL PROTECTED] writes: I have written a simple extension to test the compiled closures feature, and it seems to work. I wonder if it can be documented (and in this case I can contribute a Texinfo node) or there are plans to change the API

compiled closures status

2007-11-26 Thread Marco Maggi
Ciao, I have written a simple extension to test the compiled closures feature, and it seems to work. I wonder if it can be documented (and in this case I can contribute a Texinfo node) or there are plans to change the API. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm

goops classes for smobs

2007-11-13 Thread Marco Maggi
/gee/tmp/multi-smob.tar.gz -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: goops classes for smobs

2007-11-13 Thread Marco Maggi
Corrections... :( Marco Maggi wrote: scm_make_extended_class_with_supers(my, scm_variable_ref(number)); This must be: scm_make_extended_class_with_supers(my, scm_list_1(scm_variable_ref(number))); and the change to 'scm_class_of()' must be something like: { /* Goops object

packed structures usefulness

2007-11-02 Thread Marco Maggi
that I have already written a module to implement variable-length vectors of C language types, so that way of saving memory is already available to me. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile

Re: why args are invalid syntaxes in syntax-rules

2007-10-17 Thread Marco Maggi
Stephen Compall wrote: On Sat, 2007-10-13 at 08:37 +0200, Marco Maggi wrote: (body ?args ?body) First, invoke that instead of this. Second, does the above pattern match the below syntax? (body () (display 'ciao) (newline)) Thanks and sorry, I did multiple errors

why args are invalid syntaxes in syntax-rules

2007-10-13 Thread Marco Maggi
) #f)) I get: ERROR: invalid syntax () from the first argument to BODY; if I change 'body ()' to 'body (a b)' the error becomes: ERROR: invalid syntax (key . args) Why there is no error when using LAMBDA but there is with custom keywords? -- Marco Maggi Now feel the funk blast! Rage Against

with-slot syntax how to

2007-10-11 Thread Marco Maggi
-RULES only? -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

modules and version numbers

2007-10-05 Thread Marco Maggi
://lists.gnu.org/archive/html/guile-user/2005-09/msg00093.html but it is not available now, nor it will be available anytime soon. And no, I cannot work on it. -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb

Re: [wanted] automagic generation of graphs

2007-07-24 Thread Marco Maggi
Thanks to all. Am I correct in saying that with a form like: (a . body) if the symbol 'a' appears in 'body' the graph is cyclic, while if the symbol does not appear in its own body the graph is Acyclic? -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb

making a thunk out of a list

2007-07-24 Thread Marco Maggi
not use FOR-EACH. I fail to see how to do it with a macro, and I cannot APPLY a LAMBDA, for example the following does not work: ((list lambda '() result)) Ideas? -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb

Re: Is guile-xlib still available anywhere?

2007-07-17 Thread Marco Maggi
William Xu wrote: I'll try. But where can i get the source? https://gna.org/projects/gee/ - download area - foreign http://download.gna.org/gee/foreign/guile-xlib-0.4.tar.gz -- Marco Maggi Now feel the funk blast! Rage Against the Machine - Calm like a bomb

Re: Is guile-xlib still available anywhere?

2007-07-15 Thread Marco Maggi
on Linux, though. -- Marco Maggi Now feel the funk blast! pRage Against the Machine - Calm like a bomb ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: load in environmento

2007-07-10 Thread Marco Maggi
stuff in ASL, which could be useful). -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: Guile Introspection

2007-07-10 Thread Marco Maggi
Mike Gran wrote: what is the scheme version of the following C code printf(%s %d\n, __FILE__, __LINE__); A better solution[1] than the other I posted. Still far from perfect. [1] http://community.schemewiki.org/?guile-function-and-file-name -- Marco Maggi They say jump!, you say how high

Re: Guile Introspection

2007-07-09 Thread Marco Maggi
-name* alpha beta)) (define (further-func . args) (apply format #t file: ~A, func: ~A, a ~A, b ~A~% *current-file-name* *current-function-name* args)) (my-func) (other-func 123 'abc) (further-func 123 'abc) -- Marco Maggi They say jump!, you say how high

Re: load in environment

2007-07-07 Thread Marco Maggi
:~%) (hash-for-each (lambda (key val) (format #t ~/key ~S, val ~S~% key val)) table) -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user

Re: base class parameterisation?

2007-06-25 Thread Marco Maggi
On Tue Jun 12 22:50:02 2007 +0200 Andy Wingo wrote: On Sat, 2007-06-09 at 08:18 +0200, Marco Maggi wrote: ---A--- | | v v A1 A2 B I wonder if there is a way to parameterise the construction of 'B' to let it have 'A1' or 'A2' as base

base class parameterisation?

2007-06-09 Thread Marco Maggi
-- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: signal handling not working in threaded guile?

2007-05-14 Thread Marco Maggi
) (format #t result ~A~% a) ;; - -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo

using compensations stacks with Guile

2007-05-02 Thread Marco Maggi
Ciao, I would appreciate if someone can find 5 mins to read: http://community.schemewiki.org/?guile-compensation and signal to me if there are obvious errors in the implementation. TIA. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head

Re: using compensations stacks with Guile

2007-05-02 Thread Marco Maggi
. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: using compensations stacks with Guile

2007-05-02 Thread Marco Maggi
fails. -- Marco Maggi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: Guile-SDL 0.3.6 available

2007-03-31 Thread Marco Maggi
site. [1] http://community.schemewiki.org/ -- Marco Maggi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: about `smob' generated by swig

2007-03-28 Thread Marco Maggi
the SMOB driver. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: about `smob' generated by swig

2007-03-27 Thread Marco Maggi
language. Are you sure that you need SWIG? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: modules and C

2007-03-23 Thread Marco Maggi
, but it is included when the compiler does its job; now you can use 'scm_c_call_with_current_module()' and invoke the initialisation function. -- Marco Maggi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: C++ and stack unwinding/destruction

2007-03-20 Thread Marco Maggi
++ library. And even in this case mixing the two dynwinds is troublesome. I am not a C++ programmer, but maybe using object functions to invoke the Guile/C API and wrapping them in scm_dynwind_begin/end... -- Marco Maggi ___ Guile-user mailing list

threads, mux and single-slot values

2007-03-13 Thread Marco Maggi
... (if flag ...) ...)) ... (set! flag #t) ... (join-thread tid)) and it works like I expect it to in a test suite, but is it correct? P.S. Guile doc: '1+' is undocumented. -- Marco Maggi

threads, muxes, gc, assert violation

2007-03-12 Thread Marco Maggi
(proc=0x403252a0, arg1=0x4031d9a8, args=0x405c44c8) at ../../libguile/eval.c:4880 ## -- -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user

overloading predicates

2007-02-12 Thread Marco Maggi
, like vectors and matrices. To distinguish built in reals from other real things there is the IS-A? predicate, and to make old code continue to work there are modules. So how bad it is to break this? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet

Re: user interface, asynchronous objects, garbage collection

2007-01-31 Thread Marco Maggi
-TCL in a couple of days, and it is finished with very simple code. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo

user interface, asynchronous objects, garbage collection

2007-01-27 Thread Marco Maggi
a solution for this. Suggestions are welcome. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: Did you say community? What's that?!? (Episode 2)

2006-10-17 Thread Marco Maggi
Neil Jerram wrote: Marco Maggi [EMAIL PROTECTED] writes: [...] I asked for some help to complete my Guile binding to OpenSSL Out of interest, what happened with that, It is somewhat working, I still have some things to write and some things about certificate management and session caching

Did you say community? What's that?!? (Episode 2)

2006-10-15 Thread Marco Maggi
In the first episode I asked for some help to complete my Guile binding to OpenSSL, which I have to admit is not much fun to code. Now I have written a binding[1] to GD[2] (the graphics library etc.) which, you have to admit IS somewhat funny. Most of the code is there, with

Re: netl protocol summary?

2006-09-24 Thread Marco Maggi
Neil Jerram wrote: Marco Maggi [EMAIL PROTECTED] writes: Is there a list of net protocols available for Guile in modules and/or extensions? [...] there might be something in this area in Andy Wingo's guile-library package. Mh, no. Of course there are the http implementations in mod_lisp

Re: atexit function

2006-09-18 Thread Marco Maggi
No luck so far. The EXIT-HOOK is executed only if RUN-HOOK is invoked and in my experiments this does not happen with 'guile -s' or EXIT invocation. I am thinking of patching guile for a special EXIT signal, to make it work like the GNU Bash fake EXIT signal. -- Marco Maggi They say jump!, you

netl protocol summary?

2006-09-15 Thread Marco Maggi
Is there a list of net protocols available for Guile in modules and/or extensions? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org

Re: saving and restoring the error stack trace

2006-09-01 Thread Marco Maggi
the stack is better or worse than this? http://www.ossau.uklinux.net/guile/debugging-demo/shot2.html I dunno. It has a completely different purpose. Nice one that there is a stepping debugger, though. Neil Jerram wrote: Marco Maggi wrote: and that the args content is not explicitly documented even

Re: saving and restoring the error stack trace

2006-08-31 Thread Marco Maggi
is not explicitly documented (that is, I was not able to find it) even if its content is well defined in 'scm_error_scm()': scm_ithrow (key, scm_list_4 (subr, message, args, data), 1); -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head

saving and restoring the error stack trace

2006-08-24 Thread Marco Maggi
-scheme-function. For the ones that know how Tcl works: what I want is the same as saving the errorInfo global variable and restoring it later. Is there a way? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head

Re: design advice on predicate name

2006-08-20 Thread Marco Maggi
of the elements of a num/vec/mat is 0 or 1. So Octave requires two functions call to achieve the result of HIT-NAN? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user

accessor with 2/3 parameters

2006-08-18 Thread Marco Maggi
it? If there is a solution it could be a good idea to add the implementation example to the GOOPS documentation. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org

Re: design advice on predicate name

2006-08-18 Thread Marco Maggi
Neil Jerram wrote: Marco Maggi [EMAIL PROTECTED] writes: Example: I have two predicates HIT-NAN? and MAP-NAN? which one it is better to call NAN? I'm afraid I don't understand. Perhaps you could write the down for the two possibilities that you have in mind. For a vector of real numbers

Re: procedure and generic base class?

2006-08-18 Thread Marco Maggi
Yes! applicable works. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

design advice on predicate name

2006-08-17 Thread Marco Maggi
? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

procedure and generic base class?

2006-08-17 Thread Marco Maggi
Ciao, when I define a generic function that accepts a procedure or generic function as parameter I have to define two identical functions: (define-method (map (p procedure) ... (define-method (map (p generic) ... is there a base class for procedure and generic? -- Marco Maggi They say

acosh, getting consistent results from GSL and Guile

2006-08-17 Thread Marco Maggi
the GSL Reference manual for details and references. The others are using a different convention (Abramowitz Stegun). As such, all the answers are correct. So, do you suggest me to override the GSL function to make it equal to the Guile one, or vice versa? -- Marco Maggi They say jump!, you

example of use of automake with guile extension

2006-07-27 Thread Marco Maggi
Ciao, can someone point me to a clean and simple Guile extension using GNU automake, that I can take as example to learn how to write automake using extensions? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head

Re: integer? as generic function

2006-05-23 Thread Marco Maggi
?) (define-method (integer? (o number)) (saved-integer? o))) (export integer?) -- Marco Maggi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: [announce] released gee--beta--0.2--base-0

2006-05-19 Thread Marco Maggi
. Chi vivrà, vedrà... Also, Guile 1.8 uses GMP internally. Does your set of bindings provide additional functionalities It exposes integer functions not exposed by Guile, like the number theoretic ones; it also exposes MPF functions (but I have to review that code). -- Marco Maggi

integer? as generic function

2006-05-19 Thread Marco Maggi
, ...) but INTEGER? is the only one that causes problems. -- Marco Maggi ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

Re: [goops] adding a number class with generic methods

2006-05-04 Thread Marco Maggi
Neil Jerram wrote: Marco Maggi [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: I do not understand why the first solution does not work; I've tried different combinations of functions but there is something I am missing. Damn... it seems to work if I do not EXPORT the generic methods

[goops] adding a number class with generic methods

2006-05-02 Thread Marco Maggi
=) ;; but I get the same error. I do not understand why the first solution does not work; I've tried different combinations of functions but there is something I am missing. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head

Re: [goops] adding a number class with generic methods

2006-05-02 Thread Marco Maggi
[EMAIL PROTECTED] wrote: I do not understand why the first solution does not work; I've tried different combinations of functions but there is something I am missing. Damn... it seems to work if I do not EXPORT the generic methods. -- Marco Maggi

Re: goops method names and built in functions

2006-03-30 Thread Marco Maggi
Sorry for the late reply... [EMAIL PROTECTED] wrote: No problems here: ... What is your problem ??? Write is correctly defined and even used by guile... Mh... yes. Trying to create a generic method named OPEN only gives me the imported module ... overrides core binding ... warning. I will have

Re: marking SCM values in client data of port structure

2006-03-11 Thread Marco Maggi
Did you try the documentation on this? Cough... now that I've read it, it is clear. Thank you. ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user

marking SCM values in client data of port structure

2006-03-10 Thread Marco Maggi
of the mark function we return the first cell and at subsequent invocations we return the cdr? -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http

Re: searching: example of C extension implementing port

2006-03-08 Thread Marco Maggi
Marco Maggi [EMAIL PROTECTED] writes: If, dunno when, I come up with a simple example channel implementation: is there an official place where I can put it? I don't think so. Well, depends on what you mean by official I guess. ;-) And BTW, what do you mean by channel? I come from TCL

searching: example of C extension implementing port

2006-03-07 Thread Marco Maggi
need the open/close/read/write/end operations, no events, no seek. -- Marco Maggi They say jump!, you say how high? Rage Against the Machine - Bullet in the Head ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile