Hello,
thank you for this start of response, but my goal is to be more general,
and not to make specific action (here, the label must be the first in
the list, ...).
In fact, I want to "rewrite" the `new` function, but only with raw
data-type (like list and cons). Or at least, something that tran
Hi,
For more explanation about my goal, here is "wrong" version :
#lang racket/gui
(define frame (new frame% [label "test"]))
(send frame show #t)
(define-syntax (mk-widget stx)
(syntax-case stx ()
[(_ (list (cons (datum->syntax k) v) ...))
#'(new button% [k v] ...)]))
; Work, but n
A more low-tech approach ...
#lang racket
(require threading)
(define students '(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z))
(define indexes (for/hash ([s students] [i (in-naturals)])
(values s i)))
; A -> 0, B -> 1, ...
(define (index student)
(hash-ref indexes s
I was trying out Oleg Kiselyov's example
http://okmij.org/ftp/Scheme/remove-markup.scm
which illustrates the use of `ssax:make-parser'. I have a couple of
questions:
1. To call ssax-make-parser, I had to require both sxml and
sxml/ssax/ssax. Is that the correct way of doing it?
2. It seems an
On Tue, May 15, 2018 at 1:28 AM, Matthew Butterick wrote:
> To add to your pile of options, because you said "certain error conditions":
> perhaps you might `raise` an exception in the db code that gets caught by
> the network code (using `with-handlers`). In this way the dependency only
> runs on
Incidentally, sorry for the mangled formatting / narrow margins that
my emails keep having. I'm not doing that, it's coming from GMail.
On Tue, May 15, 2018 at 10:06 AM, David Storrs wrote:
> On Tue, May 15, 2018 at 1:28 AM, Matthew Butterick wrote:
>> To add to your pile of options, because yo
What you seen to want is eval not a macro, because the data (including field
names) don’t exist at compile time:
#lang racket/gui
(define-namespace-anchor top)
(define frame (new frame% [label "test"]))
(define data `((stretchable-width #t) (label "test") (parent ,frame)))
(eval `(new button%
Thanks! Just what I needed.
/Jens Axel
2018-05-15 13:04 GMT+02:00 Daniel Prager :
> A more low-tech approach ...
>
> #lang racket
>
> (require threading)
>
> (define students '(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z))
>
> (define indexes (for/hash ([s students] [i (in-naturals)])
Hi, everyone
I'm currently in charge of a handin-server instance for a course at my
university. We're currently experiencing issues where students are unable
to handin their work, receiving this error message:
login error: user (STUDENT_USERNAME) not in assignment/section lab-01
I think I've c
Interestingly, it looks like this change is a deliberate one, made by Ryan
Culpepper back in 2011. Here’s the relevant commit:
commit 738bf41d106f4ecd9111bbefabfd78bec8dc2202
Author: Ryan Culpepper
Date: Tue Nov 22 02:46:32 2011 -0700
bypass ssax/ssax module
trim exports from main (br
I made a few changes to how the `html-parsing` package (version 5.0)
parses invalid HTML named character entity references.
In the unlikely event that these changes break you, please email me
directly, and we'll try to figure it out.
http://www.neilvandyke.org/racket/html-parsing/#%28part._.H
At 2018-05-15T17:36:44-04:00, John Clements wrote:
> Interestingly, it looks like this change is a deliberate one, made by
> Ryan Culpepper back in 2011. Here’s the relevant commit:
Thanks for tracing that change.
Raghu.
--
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research In
At 2018-05-14T11:40:05+05:30, N. Raghavendra wrote:
> I'll update my installation of the package after a few hours.
Sorry, I missed this. I had updated my installation of the package
after a couple of hours on that day, and sxml:document works as
expected, for local file URLs. HTTP URLs, as you
I just found that
> (define φoo→β=αρ "Foo→b=ar")
> φoo→β=αρ
"Foo→b=ar"
>(call-with-output-file "/tmp/foo.txt"
(λ (out)
(display (xml-remove-markup) out))
#:exists 'replace)
etc., work. That's nice.
In general, is it possible to declare, e.g., '→' as equivalent to '->'
in identifiers?
14 matches
Mail list logo