Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
Sorry -- typo in my code, my last email should read: OK using define-local-member-name works, see case 1 below, but it seems it would be much simpler if there was a form define/inheritable which made the method accessable within the class body where it was defined and in the sub-class bodies on

[racket] pre-announcement for ragg. Request for comments and suggestions

2013-01-03 Thread Danny Yoo
Hi everyone, I've been developing yet another parser generator generator framework for Racket. Since "yapps" is already taken by another project, I'm calling this thing "ragg", for Racket AST Generator Generator. ragg is a parsing framework with the design goal to be easy to use. It includes the

Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
OK using define-local-member-name works, see case 1 below, but it seems it would be much simpler if there was a form define/inheritable which made the method accessable within the class body where it was defined and in the sub-class bodies only. (see case 2 below) i.e. no wrapping in a let that ret

Re: [racket] How to insert array into Postgresql using DB module

2013-01-03 Thread Ryan Culpepper
On 01/03/2013 05:08 PM, J G Cho wrote: Postgresql allows INSERT INTO sal_emp VALUES ('Bill', '{1, 1, 1, 1}', '{{"meeting", "lunch"}, {"training", "presentation"}}'); I have inherited this table that is not quite normalized and has columns that are expecting arrays

Re: [racket] requiring modules in a namespace

2013-01-03 Thread Jos Koot
Thanks, Matthew. Yes, I think make-empty-base-namespace is useful. I'll try it. I was not aware of its existence. Not needing require in the original namespace allows me to omit symbol 'require' althogether from my interpreters. Even though used in quoted form only, it is awkward to have this symbo

Re: [racket] requiring modules in a namespace

2013-01-03 Thread Matthew Flatt
Method 1 is better, because it doesn't depend on `require' being bound in the target namespace. For example, you can start with `(make-empty-base-namespace)' instead of `(make-empty-namespace)', if that's useful. At Thu, 3 Jan 2013 23:22:46 +0100, "Jos Koot" wrote: > In some cases I want a namespa

[racket] requiring modules in a namespace

2013-01-03 Thread Jos Koot
In some cases I want a namespace that includes more than racket/base only, preferably a namespace that includes all of module racket. For example, a base-namespace does not include procedure force (as clearly documented) I see two methods to require all of racket into a base-namespace (I imagine th

Re: [racket] Overriding methods in Racket classes

2013-01-03 Thread Asumu Takikawa
On 2013-01-03 17:01:54 -0500, Harry Spier wrote: > In Racket is it possible to override a non-public method? > > [...] > > Apologies if I've missed something obvious but I've just started going > through the Classes and Objects documentation. I can see where you > can declare a method public and o

[racket] How to insert array into Postgresql using DB module

2013-01-03 Thread J G Cho
Postgresql allows INSERT INTO sal_emp VALUES ('Bill', '{1, 1, 1, 1}', '{{"meeting", "lunch"}, {"training", "presentation"}}'); I have inherited this table that is not quite normalized and has columns that are expecting arrays. Can I do something like following? (quer

[racket] Overriding methods in Racket classes

2013-01-03 Thread Harry Spier
Dear list members, In Racket is it possible to override a non-public method? For example in the Racket Guide section 13 and 13.1 it gives this example: (class object% (init size); initialization argument (define current-size size) ; field (super-new); supe

Re: [racket] bad video link on RacketCon

2013-01-03 Thread Sam Tobin-Hochstadt
On Tue, Jan 1, 2013 at 4:51 AM, Yvan Godin wrote: > > I don't know if this is the good list for this request but I wanted to see > Distributed places video, unfortunately seem there is a mismatch with the > Honu one. Sorry about that. The video is here: http://www.youtube.com/watch?v=C88L4u306

Re: [racket] Onlisp's condlet macro in Racket

2013-01-03 Thread Eli Barzilay
Yesterday, Sean Kanaley wrote: > > My understanding from the linked blog is Racket uses phases so > e.g. changing functions at REPL like (set! remove-duplicates-by 3) > that might be used in macros called after this don't use the new > binding. But if I define a global run-time function, can't it

[racket] On gui

2013-01-03 Thread heraklea
Hello friends, is there any Dockwidget capability in Racket gui? Or what about splitter between panes or something else? Yours, Racket Users list: http://lists.racket-lang.org/users