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

2006-05-07 Thread Mikael Djurfeldt
On 5/7/06, Neil Jerram [EMAIL PROTECTED] wrote: I agree that this explains why the export is not necessary (and hence why it works without it). But I don't yet understand why adding the export messes things up. In the current module system, the effect of mentioning a variable in an export

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

2006-05-06 Thread Neil Jerram
Mikael Djurfeldt [EMAIL PROTECTED] writes: On 5/4/06, Marco Maggi [EMAIL PROTECTED] wrote: Yes, with the following and no EXPORT invocation it works. Actually, logically this *is* how the code should be structured. If you had created a novel generic function within your module, that

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

2006-05-04 Thread Neil Jerram
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. You mean if you

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.

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

2006-05-04 Thread Mikael Djurfeldt
On 5/4/06, Marco Maggi [EMAIL PROTECTED] wrote: 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

[goops] adding a number class with generic methods

2006-05-02 Thread Marco Maggi
Hi, I am trying to add a new number class, export generic methods from a module and import them into another one. If I ignore the GOOPS tutorial and read only the reference, it is my understanting that I should do: ;; ;; exporting.scm

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