[racket-users] Trouble with recursive lambda macros, using Y combinator

2016-09-10 Thread Vasily Rybakov
Hi! I'm learning Racket and I stumpbled into a couple of problems with macros. I tried to make macros that implements recursive lambda, but not the classic one (that uses letre), but the one that uses Y combinator. So it should work like this: (recursion fact (n) (if (zero? n)

Re: [racket-users] Image Transparency Detection

2016-09-10 Thread Lehi Toskin
On Saturday, September 10, 2016 at 5:45:43 AM UTC-7, Matthew Flatt wrote: > I think that means information about the source stream's alpha channel > really is not available through the current interface. A pull request > to add that would be welcome. I've been looking through bitmap%'s definition

Re: [racket-users] Using the base language’s get-info function with make-meta-reader

2016-09-10 Thread Alex Knauth
> On Sep 8, 2016, at 4:36 PM, Alexis King wrote: > > Alright, I’m finally taking a look at this (and looping the users > list back in). I think, unfortunately, your (Alex’s) change isn’t > quite sufficient: having access to the get-info function isn’t > enough. The read and read-syntax functions

Re: [racket-users] Image Transparency Detection

2016-09-10 Thread Matthew Flatt
At Sat, 10 Sep 2016 01:10:53 -0700 (PDT), Lehi Toskin wrote: > On Friday, September 9, 2016 at 7:45:32 PM UTC-7, Matthew Flatt wrote: > > You could use 'unknown/mask, which should create a mask bitmap only if > > the source stream has an alpha channel, but at the expense of parsing > > the file an

Re: [racket-users] Image Transparency Detection

2016-09-10 Thread Lehi Toskin
On Friday, September 9, 2016 at 7:45:32 PM UTC-7, Matthew Flatt wrote: > You could use 'unknown/mask, which should create a mask bitmap only if > the source stream has an alpha channel, but at the expense of parsing > the file an extra time. Running `(read-bitmap img 'unknown/mask)` produces a bit