-module(foo).
-compile(export_all).
-record(name, {
firstname :: string(),
surname :: string()
}).
-record(student, {
id :: integer(),
name :: #name{}
}).
name() ->
Name = #name{firstname = "Foo", surname = "Bar"},
Student = #student{id = 1, name = Name},
(Student#student.name)#name.firstname.
Saluti,
Roberto Aloi
http://aloiroberto.wordpress.com
2009/3/31 Administrator <gob...@gmail.com>: