Re: [racket-users] strange behaviour of procedure partitions

2017-11-12 Thread Gustavo Massaccesi
I can reproduce this error in
Welcome to DrRacket, version 6.11 [3m].
Language: racket [custom]; memory limit: 2048 MB.

but only if I use this configuration:

[X] No debugging or profiling

[   ] Populate compiled directories (I didn't try enabling this)
[??] Preserve stacktrace (error with or without this option)
[X] Enforce constant definitions

Gustavo



On Sun, Nov 12, 2017 at 6:57 PM, Jos Koot <jos.k...@gmail.com> wrote:
> I have downloaded and installed "Welcome to DrRacket, version
> 6.11.0.2--2017-11-12(b54ea8c5b1/a) [3m].",
> but the problem still remains.
> I have Windows 7 premium home.
> Thanks, Jos
>
> 
> From: Jens Axel Søgaard [mailto:jensa...@soegaard.net]
> Sent: zondag 12 november 2017 21:21
> To: Jos Koot; Racket Users
> Subject: Re: [racket-users] strange behaviour of procedure partitions
>
>
> søn. 12. nov. 2017 kl. 19.54 skrev Jos Koot <jos.k...@gmail.com>:
>>
>> Hi
>>
>> In the definitions window of DrRacket:
>>
>> #lang racket
>> (require (only-in math/number-theory partitions))
>> (partitions 0)
>> (partitions 0)
>>
>> Runs ok,
>> but after running,
>> typing (partitions 0) in the interactions window
>> gives the following error:
>>
>> define-values: assignment disallowed;
>>  cannot re-define a constant
>>   constant: lifted.0
>
>
> Have you tried it in a version of Racket using the new expander?
>
> Just a hunch based on: https://github.com/racket/datalog/issues/6
>
>
>> The error does not show up when I comment out
>> the two lines (partitions 0) in the definitions window
>> and rerun before typing (partitions 0) in the interactions window.
>> I suppose this is a bug.
>>
>> The error does not occur when replacing
>> #lang racket
>> by
>> #lang typed/racket
>>
>> It is very well possible that I don't correctly require
>> from a typed module into an untyped one.
>> Should be possible, no?
>>
>> Thanks, Jos
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> Jens Axel Søgaard
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [racket-users] strange behaviour of procedure partitions

2017-11-12 Thread Jos Koot
I have downloaded and installed "Welcome to DrRacket, version 
6.11.0.2--2017-11-12(b54ea8c5b1/a) [3m].",
but the problem still remains.
I have Windows 7 premium home.
Thanks, Jos

  _  

From: Jens Axel Søgaard [mailto:jensa...@soegaard.net] 
Sent: zondag 12 november 2017 21:21
To: Jos Koot; Racket Users
Subject: Re: [racket-users] strange behaviour of procedure partitions



søn. 12. nov. 2017 kl. 19.54 skrev Jos Koot <jos.k...@gmail.com>:




Hi 

In the definitions window of DrRacket: 

#lang racket 
(require (only-in math/number-theory partitions)) 
(partitions 0) 
(partitions 0) 

Runs ok, 
but after running, 
typing (partitions 0) in the interactions window 
gives the following error: 

define-values: assignment disallowed; 
 cannot re-define a constant 
  constant: lifted.0 




Have you tried it in a version of Racket using the new expander?

Just a hunch based on: https://github.com/racket/datalog/issues/6



The error does not show up when I comment out 
the two lines (partitions 0) in the definitions window 
and rerun before typing (partitions 0) in the interactions window. 
I suppose this is a bug. 

The error does not occur when replacing 
#lang racket 
by 
#lang typed/racket 

It is very well possible that I don't correctly require 
from a typed module into an untyped one. 
Should be possible, no? 

Thanks, Jos 



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 

-- 
Jens Axel Søgaard


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] strange behaviour of procedure partitions

2017-11-12 Thread Jens Axel Søgaard
søn. 12. nov. 2017 kl. 19.54 skrev Jos Koot :

> Hi
>
> In the definitions window of DrRacket:
>
> #lang racket
> (require (only-in math/number-theory partitions))
> (partitions 0)
> (partitions 0)
>
> Runs ok,
> but after running,
> typing (partitions 0) in the interactions window
> gives the following error:
>
> *define-values: assignment disallowed;*
> * cannot re-define a constant*
> *  constant: lifted.0*
>
>
Have you tried it in a version of Racket using the new expander?

Just a hunch based on: https://github.com/racket/datalog/issues/6


The error does not show up when I comment out
> the two lines (partitions 0) in the definitions window
> and rerun before typing (partitions 0) in the interactions window.
> I suppose this is a bug.
>
> The error does not occur when replacing
> #lang racket
> by
> #lang typed/racket
>
> It is very well possible that I don't correctly require
> from a typed module into an untyped one.
> Should be possible, no?
>
> Thanks, Jos
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] strange behaviour of procedure partitions

2017-11-12 Thread Jos Koot
Hi

In the definitions window of DrRacket:

#lang racket
(require (only-in math/number-theory partitions))
(partitions 0)
(partitions 0)

Runs ok,
but after running,
typing (partitions 0) in the interactions window
gives the following error:

define-values: assignment disallowed;
 cannot re-define a constant
  constant: lifted.0

The error does not show up when I comment out
the two lines (partitions 0) in the definitions window
and rerun before typing (partitions 0) in the interactions window.
I suppose this is a bug.

The error does not occur when replacing
#lang racket
by
#lang typed/racket

It is very well possible that I don't correctly require
from a typed module into an untyped one.
Should be possible, no?

Thanks, Jos

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.