nd
chicken-5 had been better your answer had helped as well.
> Martin Schneeweis wrote:
> > chicken-4: Yes, when I add "(use mod-a)" in mod-b then I can call
> > "test-a" in mod-b - but calling "test-a" in mod-c still leads to the
> > same ru
ko...@upyum.com wrote:
> Martin Schneeweis wrote:
> > Splitting the whole thing into 3 files does not work - I get a
> > runtime exception (when executing "mod-c"): "Error: unbound
> > variable: mod-a#test-a".
>
> The one thing that is missing fro
Hi,
I am trying to reexport functions out of my own modules - but am
failing.
In my simple example I have 3 modules:
- mod-a: exports a simple function
- mod-b: does nothing except reexporting the simple function
- mod-c: imports mod-b and calls the simple function
The behaviour in
Hi Peter,
> In CHICKEN 4 we don't detect illegal internal defines, and they will
> actually "fall through" and be treated as global defines, which is a
> total mindfuck. In CHICKEN 5 we've improved the situation by raising
> an error when an illegally-placed define is detected.
thanks for the
Hi Thomas,
Thomas Chust wrote:
> wrote:
>
> > [...]
> > please can someone explain to me why the following even works?
> >
> > (define sym 'b)
> >
> > (case sym
> > ('a "an 'a'")
> [...]
> The apostrophe is a *reader* macro, so before the compiler or
> interpreter ever gets to see
Hi,
please can someone explain to me why the following even works?
(define sym 'b)
(case sym
('a "an 'a'")
('b "a 'b'")
('c "a 'c'")
(else "something else")) ; -> a 'b'
The correct case-form for the above example should be:
(case sym
((a) "an 'a'")
((b) "a 'b'")
Hi,
sorry for this test mail - I just want to make sure that I start a new
thread in the future.
Is this a new thread?
Thanks,
Martin
P.S Sometimes I used "Reply" when starting a new topic - thought that
would be o.k if I replace the subject etc. Now I checked the
mail-source of such
Hi Megane,
megane wrote:
> To get any type checking at all you need to have the scrutinizer
> enabled. You can force it by using the -specialize flag, or using
> optimization level of >= 3. So using only -optimize-level 0 will
> suppress all type warnings.
- ah - thanks for the info -
lg
Hi,
back at playing with types - my current impression is that the compiler
is a little too optimistic (goal: get as much warnings as
possible - optimizations are no concern here).
Example A - compiler gives warning - I am happy:
(: my-add (fixnum fixnum --> float)) ; note the float return
Hi,
is there a way to change the following page:
http://wiki.call-cc.org/chicken-projects/egg-index-4.html
I assume this page is produced programmatically (no edit-link on top of
the page)
The egg "environments" belongs to the category "Unsupported or
redundant" (at least I assume so because
Hi,
> (define my-fun (lambda (lst) ...))
>
> and I want to make sure that every odd element is a symbol and every
> even element is a string.
the best I could come up with is
(: my-fun ((list-of (pair symbol string)) --> string))
(define my-fun (lambda (lst) ...))
Unfortunately a little
Hi,
it seems to me that the dbc egg does not work well when using the
compiler switch "-debug-info".
Without -debug-info my test executable procuces the following output
(something like that I had expected):
Contract violation in (add):
...
Error: exception-handler returned
...
Hi,
is it possible to define recursive types?
Suppose I have a function
(define my-fun (lambda (lst) ...))
and I want to make sure that every odd element is a symbol and every
even element is a string.
The best I could come up with is something like that:
(define-type l-1 (pair symbol
Hi,
found the problem (nevertheless strange that 1 "prefix" does not make a
problem):
> I compile with the following statements:
>
> csc -s A.scm
> csc -s B.scm
> csc C.scm
The solution is:
csc -s -J A.scm
csc -s A.import.scm
csc -s -J B.scm
csc -s B.import.scm
csc C_2.scm
Hi,
can anybody reproduce the following?
I have 3 very simple files A.scm, B.scm, C.scm - all located in the
same directory (source code see attachments)
C uses A and B.
I compile with the following statements:
csc -s A.scm
csc -s B.scm
csc C.scm
No compiler-messages - "C" is
> My code for integrating completions into Parley is in my dotfiles [1].
>
> Vasilij
>
> [1]: https://github.com/wasamasa/dotfiles/blob/master/home/wasa/.csirc
Thanks a lot Vasilij!
Martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
Hi Vasilij,
> > The problem with this imlementation is: the symbols of "used"
> > modules are missing.
>
> I've written a replacement for the readline egg [1] for a few reasons,
> one of them being its completion suffering from the same issue you
> describe. Perhaps you'll find its completion
Hi everyone,
example for what I want: editing a file that starts with
...
(import scheme chicken)
(use (prefix ports p:))
and then typing somewhere (pipe is my caret)
(p:po|
hitting - a list pops up - content:
p:port-fold
p:port-for-each
p:port-map
If someone knows of an
Hi,
is there a way to register on the wiki page?
(https://wiki.call-cc.org/)?
Some pages need some love (especially for neewbies like me).
Thanks,
Martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
19 matches
Mail list logo