default   Racket Bugs
Main PageQuick QueryStandard QueryAdvanced QueryHelp
Log in

View Problem Report: 10959

send email to interested parties or send email followup to audit-trail
Reporter's email: jos dot koot at telefonica dot net
Number: 10959
Category: mzscheme
Synopsis: namespace-variable-value cannot find 'apply' in base-namespace
Class: doc-bug
Responsible: mflatt
Notify-List:
Severity: serious
Priority: medium
State: closed
Confidential: no
Arrival-Date: Fri Jun 04 05:24:01 -0400 2010
Closed-Date: Tue Jul 20 11:38:25 -0400 2010
Last-Modified: Tue Jul 20 11:38:25 -0400 2010
Originator: Jos Koot
Organization: plt
Submitter-Id: unknown
Release: 5.0.0.1--2010-06-02(4ebe2a0/a)
Environment: windows "Windows NT 6.1 (Build 7600)" (win32\i386\3m) (get-display-depth) = 32
Human Language: english
(current-memory-use) 162584484

Collections:
(("C:\\Users\\Jacob\\AppData\\Roaming\\Racket\\5.0.0.1\\collects" "attractor.bak" "attractor.ss" "che4ck-expect-example.bak" "che4ck-expect-example.ss" "cookbookcoroutines.bak" "cookbookcoroutines.scm" "idiv.bak" "idiv.ss" "interpreter" "jj-coupling.bak" "jj-coupling.ss" "Kopie van new-lzy" "lc-with-redex" "lc-with-redex-from-site" "lc-with-redex.zip" "loop" "lzy" "my-scheme" "navigate-r5rs-sin.bak" "navigate-r5rs-sin.ss" "navigate-r5rs.bak" "navigate-r5rs.ss" "navigate-r6rs.bak" "navigate-r6rs.ss" "navigate.bak" "navigate.ss" "navigate.txt" "new-lzy" "new-lzy kopie" "newer-lzy" "old vago" "Piloting.doc" "poly-fit.ss" "promises-and-streams" "q.ss" "random-walk.bak" "random-walk.ss" "roots.bak" "roots.ss" "shifted-multiplication-2.bak" "shifted-multiplication-2.ss" "shifted-multiplication.bak" "shifted-multiplication.ss" "tic-tac-toe-2.bak" "tic-tac-toe-2.ss" "tic-tac-toe-3.bak" "tic-tac-toe-3.rkt" "tic-tac-toe-4.bak" "tic-tac-toe-4.rkt" "tic-tac-toe.bak" "tic-tac-toe.ss" "tu!
iring.bak" "tuiring.ss" "unit-trial" "vars-idents-etc.bak" "vars-idents-etc.ss" "w.bak" "w.ss") ("C:\\Program Files\\Racket-Full-5.0.0.1\\collects" "2htdp" "afm" "algol60" "at-exp" "browser" "combinator-parser" "compiler" "config" "defaults" "deinprogramm" "drracket" "drscheme" "dynext" "embedded-gui" "eopl" "errortrace" "ffi" "file" "framework" "frtime" "games" "graphics" "gui-debugger" "guibuilder" "handin-client" "handin-server" "help" "hierlist" "honu" "htdp" "html" "icons" "info-domain" "lang" "launcher" "lazy" "macro-debugger" "make" "meta" "mred" "mrlib" "mysterx" "mzcom" "mzlib" "mzscheme" "net" "openssl" "parser-tools" "plai" "planet" "plot" "preprocessor" "profile" "r5rs" "r6rs" "racket" "racklog" "rackunit" "raco" "reader" "readline" "redex" "repo-time-stamp" "rnrs" "s-exp" "scheme" "schemeunit" "scribble" "scribblings" "scriblib" "setup" "sgl" "sirmail" "slatex" "slideshow" "srfi" "srpersist" "stepper" "string-constants" "swindle" "syntax" "syntax-color" "teachp!
ack" "test-box-recovery" "test-engine" "tests" "tex2page" "tex!
pict" "trace" "typed" "typed-scheme" "unstable" "version" "waterworld" "web-server" "wxme" "xml"))
Computer Language: (("Determine language from source") (#(#t print mixed-fraction-e #f #t debug) (default) #() "#lang racket\n" #t))
Description: Procedure namespace-variable-value cannot find symbol 'apply' in a base-namespace.
However, symbol apply does appear in (namespace-mapped-symbols).
See steps to reproduce.
File Attachments:
How-To-Repeat: #lang racket
(namespace-variable-value 'apply #t (λ () 'nope) (make-base-namespace))
(namespace-variable-value 'add1 #t (λ () 'nope) (make-base-namespace))
(and (memq 'apply (namespace-mapped-symbols (make-base-namespace))) 'yes)

Welcome to DrRacket, version 5.0.0.1--2010-06-02(4ebe2a0/a) [3m].
Language: racket; memory limit: 1500 MB.
'nope
#<procedure:add1>
'yes
>
Fix:
Release-Note:
Unformatted:

send email to interested parties or send email followup to audit-trail

Audit Trail:

From: Matthew Flatt <mflatt at cs.utah.edu>
To: jos.koot at telefonica.net, bugs at racket-lang.org
Cc: nobody at racket-lang.org, bug-notification at racket-lang.org
Subject: Re: [plt-bug] all/10959: namespace-variable-value cannot find 'apply' in base-namespace
Date: Fri, 4 Jun 2010 06:27:26 -0600

 At Fri, 4 Jun 2010 05:24:02 -0400, jos.koot at telefonica.net wrote:
 > Procedure namespace-variable-value cannot find symbol 'apply' in a 
 > base-namespace.
 > However, symbol apply does appear in (namespace-mapped-symbols). 
 > See steps to reproduce.
 
 `apply' is now bound as syntax, which allows an application of `apply'
 without keywords to expand to a more primitive `apply' function, which
 the bytecode compiler can sometimes optimize further.
 
From: "Jos Koot" <jos.koot at telefonica.net>
To: "'Matthew Flatt'" <mflatt at cs.utah.edu>, <bugs at racket-lang.org>
Cc: <nobody at racket-lang.org>, <bug-notification at racket-lang.org>
Subject: RE: [plt-bug] all/10959: namespace-variable-value cannot find 'apply' in base-namespace
Date: Fri, 4 Jun 2010 16:43:28 +0200

 Thanks for your explanation, quick as always.
 Jos
 
 
 > -----Original Message-----
 > From: Matthew Flatt [mailto:mflatt at cs.utah.edu]
 > Sent: 04 June 2010 14:27
 > To: jos.koot at telefonica.net; bugs at racket-lang.org
 > Cc: nobody at racket-lang.org; bug-notification at racket-lang.org
 > Subject: Re: [plt-bug] all/10959: namespace-variable-value cannot find
 > 'apply' in base-namespace
 > 
 > At Fri, 4 Jun 2010 05:24:02 -0400, jos.koot at telefonica.net wrote:
 > > Procedure namespace-variable-value cannot find symbol 'apply' in a
 > > base-namespace.
 > > However, symbol apply does appear in (namespace-mapped-symbols).
 > > See steps to reproduce.
 > 
 > `apply' is now bound as syntax, which allows an application of `apply'
 > without keywords to expand to a more primitive `apply' function, which
 > the bytecode compiler can sometimes optimize further.
 
 
 

Class changed from "sw-bug" to "doc-bug" by mflatt at Tue, 20 Jul 2010 11:38:25 -0400
Reason>>> intended behavior, but not documented well enough

State changed from "open" to "closed" by mflatt at Tue, 20 Jul 2010 11:38:25 -0400
Reason>>> added release note