Nothingness

Vance Shipley vances@REDACTED
Sat Oct 27 02:52:30 CEST 2001


> 
> Interestingly, records do support the concept of "undefined" ...
> 
> Erik.

-module(undef).
-export([test/0]).

-record(r1, {name, phone, address}).

test() ->
	#r1{name = "Joe", phone="5551234"}.


Erlang (BEAM) emulator version 5.1 [threads:0]

Eshell V5.1  (abort with ^G)
1> c(undef).
{ok,undef}
2> undef:test().
{r1,"Joe","5551234",undefined}




   -Vance



More information about the erlang-questions mailing list