Re: [Chicken-users] what does "##core#check" do?

2019-05-14 Thread Peter Bex
On Tue, May 14, 2019 at 07:05:41AM +0200, Marco Maggi wrote:
> Ciao,
> 
>   in the "record-variants" egg there is:
> 
>(##core#check (##sys#check-structure x ',original-name))
> 
> I understand what:
> 
>(##sys#check-structure x ',original-name)
> 
> does,  but  what  is  the  "##core#check" for?   In  other  code  I  see
> "##sys#check-structure" uses without it.

It's an annotation in the core language (see core.scm) that causes the
expression inside to be eliminated in unsafe mode.  In normal mode, it
will just walk the expression as if the ##core#check wasn't there.

Cheers,
Peter


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] what does "##core#check" do?

2019-05-13 Thread Marco Maggi
Ciao,

  in the "record-variants" egg there is:

   (##core#check (##sys#check-structure x ',original-name))

I understand what:

   (##sys#check-structure x ',original-name)

does,  but  what  is  the  "##core#check" for?   In  other  code  I  see
"##sys#check-structure" uses without it.

TIA
-- 
Marco Maggi

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users