Re: [racket-users] Collections and data structures wishlist?

2019-01-23 Thread Greg Hendershott
>> - A separation between using lists as homogeneous collections and using >> lists as fixed-size tuples. So there'd be a separate `tuple?` data type >> that's structurally equivalent to a list but meant to be used differently. >> For example, `(list/c number?)` would mean a list of many numbers

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-23 Thread Brian Adkins
Thanks. It looks like you're still using an arbitrary wait time to assume the logging event queue is empty. I like it much better than my sleep idea, but it seems like there is still the problem of choosing between 1) using a timeout value to short and missing a log message, or 2) using a time

[racket-users] snake game

2019-01-23 Thread orenpa11
Hi I am trying to implemet this code of "snake game " https://course.ccs.neu.edu/csu211/code/snake-full.ss in DrRacket (Pretty big) But when I run it it is not working . any Idea ? Thanks Or -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] snake game

2019-01-23 Thread David Storrs
What happens when you run it? Are you getting any error messages? On Wed, Jan 23, 2019 at 1:01 PM orenpa11 wrote: > > Hi > I am trying to implemet this code of "snake game " > https://course.ccs.neu.edu/csu211/code/snake-full.ss > > in DrRacket (Pretty big) > But when I run it it is not working

Re: [racket-users] snake game

2019-01-23 Thread orenpa11
Hi David, Thanks for your swift response ,I simply do not know how to run this program. I thought that when I press the run button I should see the snake GUI . Maybe the language is not pretty big ? Thanks, Or On Wednesday, January 23, 2019 at 8:25:32 PM UTC+2, David K. Storrs wrote: > > What h

Re: [racket-users] snake game

2019-01-23 Thread 'John Clements' via Racket Users
Interesting problem; your screenshot shows header text that should not appear in the window, which suggests to me that you copied and pasted the text from somewhere else into a buffer where the language level was already set. It looks to me like you should do the following: 1) Delete the first

Re: [racket-users] snake game

2019-01-23 Thread K H
Hello Or, The language is not "Pretty Big". You should be using "Beginning Student with List Abbreviations". The DrRacket metadata lines referred to by John set the correct language. In your case you must have changed the language somehow. Or perhaps the file needs to be saved before the metadat

Re: [racket-users] snake game

2019-01-23 Thread K H
It seems the metadata lines added by DrRacket (mentioned by John) are processed when the a source file is loaded into DrRacket (via the menu option File/Open), but are not processed if the source code is directly copied (e.g. from a browser window) into a DrRacket window and then executed with the

Re: [racket-users] snake game

2019-01-23 Thread orenpa11
Thanks I will check it. On Wednesday, January 23, 2019 at 9:32:56 PM UTC+2, Kieron Hardy wrote: > > Hello Or, > > The language is not "Pretty Big". > > You should be using "Beginning Student with List Abbreviations". > > The DrRacket metadata lines referred to by John set the correct language.

Re: [racket-users] snake game

2019-01-23 Thread orenpa11
Thanks On Wednesday, January 23, 2019 at 10:49:01 PM UTC+2, Kieron Hardy wrote: > > It seems the metadata lines added by DrRacket (mentioned by John) are > processed when the a source file is loaded into DrRacket (via the menu > option File/Open), but are not processed if the source code is dire

[racket-users] Re: Scribble examples for languages other than Racket

2019-01-23 Thread Ryan Kramer
OK, I found a much better way. Rather than trying to tweak a syntax object to pass in to "examples", it's much easier to use the Low-Level Scribble API to rebuild a document fragment that looks like what the built-in "examples" would build. What I have now just needs a little CSS and it looks c

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-23 Thread George Neuner
On 1/23/2019 12:02 PM, Brian Adkins wrote: It looks like you're still using an arbitrary wait time to assume the logging event queue is empty. I like it much better than my sleep idea, but it seems like there is still the problem of choosing between 1) using a timeout value to short and miss