Nu Scrapbook

Translation From Common Lisp To Nu Nu Natural Language Dates Prototype - Based Nu Objective C Type Encodings For Nu Signatures

—-

Nu identifiers can contain almost any Unicode character, including curly apostrophes (but not straight apostrophes) and non-breaking spaces. Use shift-option-] for curly apostrophy (‘) and option-space for non-breaking space (’).

—-

(NSThread sleepForTimeInterval: 3) # sleeps for 3 seconds

—-

(system “ls”)

… or, to get the returned result:

(set result (NSString stringWithShellCommand:“ls”))

See also NSString stringWithShellCommand:standardInput:

—-

To get arguments to a Nu script:

#!/usr/bin/env nush 

(set ARGV ((

See also NSString stringWithShellCommand:standardInput:

—-

To get arguments to a Nu script:

#!/usr/bin/env nush 

(set ARGV ((N S Process Info Process Info) arguments)) (set first-argument (ARGV 2))

—-

enumerable methods are at <<http://programming.nu/doc/files/objc_enumerable_h.html>>

—-

To build things on a PPC Mac, add

(set @arch '("ppc")) 

to the Nukefile, and remove the equivalent (set first-argument (ARGV 2))

—-

enumerable methods are at <<http://programming.nu/doc/files/objc_enumerable_h.html>>

—-

To build things on a PPC Mac, add

(set @arch '("ppc")) 

to the Nukefile, and remove the equivalent

—-

enumerable methods are at <<http://programming.nu/doc/files/objc_enumerable_h.html>>

—-

To build things on a PPC Mac, add

(set @arch '("ppc")) 

to the Nukefile, and remove the equivalent

to the Nukefile, and remove the equivalent X 86 statement.