Usually when this situation arises, the collection is divided as you suggest
into a `foo/base` module that has minimal dependencies and a small "kernel"
API, while various `foo/X` modules provide things that either are logically not
necessary in the base API or may trigger large dependencies. Fo
Never mind, I got it:
(define baz%
(class object%
(init (foo 0))
(define bar foo)
(super-new)
(define/public (get-bar)
bar)
(define/public (copy-baz)
(new baz% [foo (+ (get-bar) 2)]
> (define a (new baz%))
> (send a get-bar)
0
> (define b (send a copy-baz))
>
I'm trying to make some simple use of Racket's class and object system, but I'm
having trouble using the documentation to figure out how to accomplish
something.
I want to create both a no-argument default constructor and a copy-constructor.
I don't see how to accomplish that. If I declare an i
I have a collection based on polynomial code I wrote which I intend to
release at some time in the near future for some simple data processing
routines. The somewhat optimized underlying data structure for random
access use of one of my procedures would be a tree, but the somewhat
optimized structu
Thanks for the help, everyone. This works great. I especially like
handle-evt -- I had seen it in the Reference when I was reading about
events but didn't understand what it did. It really makes this easy.
On Wed, Jan 25, 2017 at 8:17 PM, Jon Zeppieri wrote:
> On Wed, Jan 25, 2017 at 8:03 P
Sets now also have a deterministic variant.
Installation:
`raco pkg install dset`
Documentation:
http://docs.racket-lang.org/dset/index.html
Contributions welcome!
https://github.com/pnwamk/dset
Best,
Andrew
--
You received this message because you are subscribed to the Google Groups
"R
On Fri, Jan 27, 2017 at 1:46 AM, WarGrey Gyoudmon Ju
wrote:
>
> (send card insert (make-object string-snip% "it's a bug of text%,
> snip's style is not (convert)ed, also affects the following inputs")
>
All right, it is not a bug, it's just how it works. the snip's style will
be convert into the-
Update: this solution does work.
I just found the reason why it did not work before.
(define digivice (new frame% [width 800] [height 600] [label "Standard
Style"]))
(define card (make-object text%))
(define darc (new editor-canvas% [parent digivice] [editor card] [style
'(no-border auto-hscroll
I have these two helpers (typed racket makes it a little verbose).
(define change-style : (->* ((Instance Style<%>))
(#:font (Option (Instance Font%))
#:color (Option (Instance Color%))
#:background-color (Option
How about merging these primitive geometry APIs into math-lib?
On Thu, Jan 26, 2017 at 8:53 PM, Jay McCarthy
wrote:
> I think that it is quite common for a big library (especially
> something really big like pict3d) to create a lot of residual useful
> code that could conceivably be their own l
On Wednesday, January 25, 2017 at 2:03:46 PM UTC+1, gustavo wrote:
> Is it possible to offer to run the migrate process automatically
> during the setup? I guess most users (i.e. me) expect and want it.
>
> It would be also useful to check that the user had at least installed
> one package in the
Hi,
i have this macro which is not R5RS compliant and passes in Racket (6.1) with
#lang r5rs selected ?
the ellipsis is not the last argument has it must be in R5RS,
perheaps it has been corrected in newer version of Racket or there is another
explains?
regards,
damien
#lang r5rs
;;#lang rac
I think that it is quite common for a big library (especially
something really big like pict3d) to create a lot of residual useful
code that could conceivably be their own libraries. I suggest either
[2] or [3] or even a new package for some sort of more primitive
notion of geometry.
Jay
On Thu,
Folks,
I want to access files from a “private” directory of a package -- in this
case pict3d -- but I was wondering what the best way to do this is.
First a bit of context:
I am using the pict3d library for a project which allows me to render and
experiment on various 3D models.
As an asi
Hi,
I have an editor-canvas% subclass and want to set the default style,
but adding it with name "Standard" to the-style-list doesn't work. Do
I have to replace the style list of the canvas with a new one? Or does
the default style of an editor-canvas% have to be called differently?
"Basic"?
With
Well, it depends a bit on your use case. I use Scribble nowadays for a
lot of documentation tasks (taking notes at meetings with customer,
documentation of software, technical papers, business related
documents). I even managed to get Scribble to use our company's LaTeX
class.
Am 25.01.2017 um 18:
16 matches
Mail list logo