Skip to content

Instantly share code, notes, and snippets.

This is Bespin!
<html>
<head>
function f(x) {
if (x == 1) {
..
}
}
function f(x) {
if (x == 1) {
..
}
}
function f() {
return 2;
}
#!/usr/bin/env ocamlscript
Ocaml.packs := [ "extlib" ]
--
type cell = CE_blank | CE_fixed of int | CE_guess of int
exception Solved
exception Constraint_failure
let zero = Char.code '0'
#!/usr/bin/env ocamlscript
Ocaml.packs := [ "extlib" ]
--
type cell = CE_blank | CE_fixed of int | CE_guess of int
exception Solved
exception Constraint_failure
let zero = Char.code '0'
[11:54am] pcwalton:
preliminary thoughts as to how to implement mutable:
[11:55am] pcwalton:
all values except "true" lvalues are immutable
[11:55am] pcwalton:
a true lvalue is defined as the LHS of an "="
[11:57am] pcwalton:
or things that behave like the LHS of an "=", including field names in records, elements in a tuple constructor, the "@" operator for constructing boxes
[11:58am] pcwalton:
Index: local/docs/Makefile
===================================================================
--- local.orig/docs/Makefile 2010-06-09 12:35:28.000000000 -0700
+++ local/docs/Makefile 2010-07-20 11:37:09.000000000 -0700
@@ -115,8 +115,10 @@
$(Verb) $(MAKE) -C $(LEVEL)/bindings/ocaml ocamldoc
$(Verb) $(MKDIR) $(PROJ_OBJ_DIR)/ocamldoc/html
$(Verb) \
- $(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \
# HG changeset patch
# Parent 37f3f119d3a84494075169efa7d0cf237f55cfb6
Bug 581241 - Add a "Filter" placeholder string to the Console filter box. r=gavin a=johnath
diff --git a/toolkit/components/console/hudservice/HUDService.jsm b/toolkit/components/console/hudservice/HUDService.jsm
--- a/toolkit/components/console/hudservice/HUDService.jsm
+++ b/toolkit/components/console/hudservice/HUDService.jsm
@@ -1807,6 +1807,7 @@
this.filterBox = this.makeXULNode("textbox");
this.filterBox.setAttribute("class", "hud-filter-box");
==65819== Memcheck, a memory error detector
==65819== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==65819== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info
==65819== Command: test/run-pass/vec-lib.x86
==65819==
==65819== Conditional jump or move depends on uninitialised value(s)
==65819== at 0x8FE06AE3: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) (in /usr/lib/dyld)
==65819== by 0x8FE018B0: dyldbootstrap::start(macho_header const*, int, char const**, long) (in /usr/lib/dyld)
==65819== by 0x8FE01056: _dyld_start (in /usr/lib/dyld)
==65819== by 0xFFF: ???