Savinga newline into a file doesn’t work (windows7 racket 5.2.1). I havetried
it on several ways:
I have used (displayln port), (newline port) , fprintf with ~n and ~% -all
without an accurate result.
It is interesting that the same code works right In another environment(racket
5.1.1 on l
Hello all,
I have a following problem:
Saving a newline into a file doesn’t work (windows7 racket 5.2.1). I have tried
it on several ways:
I have used (displayln port), (newline port) , fprintf with ~n and ~% - all
without an accurate result.
It is interesting that the same code works right In a
On Sun, 2012-03-18 at 14:38 -0400, jkaczo...@aol.pl wrote:
> Could anyone explain me how to create objects and their instances?
> [...]
Hello,
first you have to create a class. An empty class definition might look
like this:
(define foo%
(class object%
(super-new)))
Note that a
Could anyone explain me how to create objectsand their instances?
I've read of course the racket guide and reference but the examples I
foundthere are (for me) completely useless:
I'm not interested in how to create class hierarchies. The only thing I want
toknow is
how to create a class and how
-Original Message-
From: Dan Grossman
To: David Vanderson
CC: jkaczorek ; users
Sent: Mon, 31 Oct 2011 21:25
Subject: Re: [racket] set! racket behaviour
I also found it counterintuitive that
#lang racket
(define x 0)
(set! x 1)
works, but moving the set! out of the module and
-Original Message-
From: Dan Grossman
To: David Vanderson
CC: jkaczorek ; users
Sent: Mon, 31 Oct 2011 21:25
Subject: Re: [racket] set! racket behaviour
I also found it counterintuitive that
#lang racket
(define x 0)
(set! x 1)
works, but moving the set! out of the module
Hi,
I’m using DrRacket.
In an edit window I have written:
#lang racket
(define counter 0)
I’m pressing “Run” button and next, in a command line, after running a command:
(set! counter (add1 counter))
I receive a message “set!: cannot modify a constant: counter”
The problem can be resolved by
7 matches
Mail list logo