Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Sensible Language

Name: Anonymous 2008-04-10 16:30

display message, ask for age and print age in words,
where message is "Welcome to the example program of The Sensible Language."

ask for x1 means print "What's your age?" and get a line as x1

print x1 in words means:
 print the hundreds, tens and units.
 where units is num words at index n, where n is the last char of x1 or ""
 where tens is num words at index n, where n is x1 at index 2 (backwards) or ""
 where hundreds is num words at index n, where n is x1 at index 3 (backwards) or ""

the last char of x1 means x1 at index i, where i is the length of x1 - 1

x1 of words means num words at index x1

num words is a hash-table of nums to strings, containing
 "one","two","three","four","five","six","seven","eight","nine".
 failing with "".

-- Standard IO library

get a line means get x1 from stdin

get x1 from x2 means, using ffi function `get' as `ffiget', ffiget x2 as x1

print x1 means, using ffi function `putstr', putstr x1

Name: Anonymous 2008-04-10 17:25

>>7
    *   a printf like function that is fully ISO 9899:1999 (C99) compliant, also having %m as standard and POSIX i18n parameter number modifiers. It also allows gcc warning compatible customer format specifiers (and includes pre-written custom format specifiers for ipv4 and ipv6 addresses, Vstr strings and more)
So let me get this straight.
You claim the printf-life function is C99 compliant (1)
then you say it supports the `m' format modifier (2)

From (1) + (2) we have pure nonsense.
If it were really C99 compliant it would be an uppercase letter (ie, %M) and not %m.
Fucking n00bs.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List