Since 4/14/2012 3:49:54 AM, mkb has written 10 articles and participated in 986 conversations. mkb signature: mkb
mkb's articles:
Items(10) /1
type wildcards (or something similar) for function parameters551 (8/22/2008 1:14:30 PM) comp.lang.c++ Hi, is there any way to define a function where one or more parameters might be of any type, since they aren't used in the function? In particular, I'd need an operator val 'a f = fn : int -> 'a -> int (her... Matthias
duplicates in lambda-list, let bindings, etc.333 (7/8/2008 12:37:10 PM) comp.lang.lisp I stumbled across this interesting discrepancy between implementations: CLisp: (let ((x 1) (x 2)) x) ==> 2 ECL: (let ((x 1) (x 2)) x) ==> 1 SBCL: (let ((x 1) (x 1)) x) .... ; caught ERROR: ; The v... Matthias
Default-evaluation of objects825 (5/28/2008 10:38:45 AM) comp.lang.c++ Hi, I'm not sure if this is possible with C++ at all but what I'd like to have is some kind of overloaded default evaluation of a class (or the instantiated object), that is, instead of the object value, a mem... Matthias
template specification oddness828 (2/21/2008 7:06:58 PM) comp.lang.c++ Hi folks, I have a weird problem that I can't seem to put my finger on. The following example program illustrates it: ---------------------------------------------------------------------- using namespace std... Matthias
inner class accessing outer1222 (11/26/2007 1:55:56 PM) comp.lang.c++ Hi folks, I've got something like: class Outer { int f(); friend class Inner; class Inner { int g() { // call f from here } } } and I want to call Outer::f from inside g. Simply doing Outer::f()... Matthias
startup with empty scratch buffer1375 (9/9/2007 1:53:52 AM) comp.emacs Hi folks, is it possible to start up with an empty *scratch* buffer? That is, without the ";;; This buffer is for notes you don't want to save, ..." blurb. ... Matthias
a modified string-to-string correction problem228 (7/27/2007 11:16:35 PM) comp.theory Hi folks, I'm poring over an interesting problem but maybe someone can give me a pointer to an existing solution. I'd like to replicate changes I made to a sequence in a corresponding (relational, doesn't rea... Matthias
cmucl acting up on freebsd after increased kernel limits332 (7/18/2005 2:47:23 PM) comp.lang.lisp Hi folks, is anyone using cmucl on freebsd (5.4/i386) and has experienced the following? I'm using cmucl 19a (from ports) and since recently (see below) when I run "lisp", it segfaults and writes a 512mb core... Matthias
currying macro724 (4/29/2005 3:04:56 AM) comp.lang.scheme Hi folks, I'm trying to come up with an easy (and efficient) way to curry a function. The reasoning behind this is that I want to pass a function as a parameter but with some of its arguments already "filled ... Matthias
true lexical scope for toplevel defines5025 (3/28/2005 11:12:11 PM) comp.lang.scheme Hi folks, R5RS states that `define' acts like `set!' when the variable to be defined is already bound. What's the rationale behind this? It's probably more in style with traditional Lisp but what I'd like wo... Matthias
LISP #41210 (5/2/2009 2:22:15 AM) comp.lang.lisp Could anyone recommend a LISP environment? I have a ten-year old version of Harlequin on a PC and a 15-year-old version of MCL on a 120 mh Mac clone. Are the Mac LISPs sufficiently better than the PC LISPs to... b91cohen(1)
How to make the compiler complain?140 (3/26/2009 8:31:29 PM) comp.lang.lisp When one forgets to declare a variable in C, the gcc compiler complains bitterly; it's annoying but it forces one to declare. The CL implementations I know (ECL, SBCL) let you get away with undeclare variable e... franco(243)
Common Lisp's fixable issues?16634 (3/22/2009 1:29:41 PM) comp.lang.lisp Since it's unlikely that Common Lisp gets an updated specification fixing issues programmers have met in using it for years, and since standards usually have not fixing issues as a goal anyway, I wonder if you ... egarrulo(222)
Anyone else feel like C++ is getting too complicated?10426 (3/19/2009 2:35:37 AM) comp.lang.c++ I know I'm going to get flamed here, but I really feel like C++ is just getting way too complicated to be as practical as I feel it should (and could) be. Before you start, I've been doing C++ professionally f... divisortheory(94)
Who earns how much? Lisp is #1 @ Germany20 (3/18/2009 2:43:10 PM) comp.lang.lisp An interesting piece of news that one of my colleagues working in Germany drew my attention to, just before the International Lisp Conference 2009 begins: Which programming language has the lion share in Germa... emre.sevinc(28)
So completely lost - trying to learn Lisp3028 (3/18/2009 2:26:42 PM) comp.lang.lisp I'm a second year CS student. I learned C/C++ on Visual Studio on Windows. I began reading Peter Seibel's book "Practical Common Lisp", some Paul Graham's essays, and what really helped me at first was David ... wolfstemple(3)
Singleton --- Just Look and give Suggestion's1523 (3/5/2009 4:16:45 PM) comp.lang.c++ 1. its not executing display() properly ....just look to it 2. Suggest effective way to write MUTEX class at User level #include using namespace std; template class Singleton { private : Singleton... singh.pallav(123)
idiomatic Lisp style7830 (2/11/2009 4:34:20 PM) comp.lang.lisp The following script averages a series of grades from console input. I wrote it as if I would write a C program -- obviously not in idiomatic Lisp. How would one rewrite this in idiomatic Lisp? CC (progn ... cartercc(421)
(eql x y) = T and (equal x y) = NIL2235 (2/10/2009 6:31:43 PM) comp.lang.lisp Can some one please show me an example of this case ? (x and y can be sustituted) What exactly is the difference between eql and equal ? ... Broli00(348)
COMPILE-FILE without a file...2128 (2/2/2009 7:00:15 PM) comp.lang.lisp ....or, compiling arbitrary text streams. As far as I know, the only two standard interfaces with the Lisp compiler are the functions COMPILE and COMPILE-FILE. The first compiles a single function, the other c... alessiostalla(364)