record _info and guard record(X) seems to refuse variable as argument.
Tue Aug 8 12:50:32 CEST 2000
> sorry , previsou posting was unclear.
> i mean, record_info refuse variable as table name.
Well, that is because all records are handled by the precompiler and
all reference to records are translated into tuples and tuple functions.
I had a similar problem where I wanted to be able to be able to
traverse a set of records creating lists with the record fields that
where not undefined. I solved the problem with help of the following
structure where I automatically generated the select function with an
bold, % true | false
select(Record, header, title) ->
select(Record, header, bold) ->
select(Record, header, title_align) ->
select(Record, header, title_valign) ->
//The highway of life is always under construction. //
|\ _,,,--,,_ ,)
/,`.-'`' -, ;-;;'
|,4- ) )-,_ ) /\
Ericsson Utvecklings AB Phone : +46 8 719 18 13
Open Systems (f.d. Erlang Systems) Cellular/Mobile: +46 70 636 78 68
Torshamnsgatan 39 B
Box 1214 http://www.erlang.se
S-164 28 KISTA, SWEDEN ingela@REDACTED
More information about the erlang-questions