|
|
| Author |
Message |
|
| keymone |
Posted: Mon Sep 17, 2007 8:01 am |
|
|
|
User
Joined: 17 Sep 2007
Posts: 11
Location: Lviv, Ukraine
|
hello everybody
i can't get it:
T = ets:new( data, [set] ),
ets:insert( T, {a,1} ).
is working ok but
ets:new( data, [set] ),
ets:insert( data, {a,1} ).
gives me badarg.
why is that? is not "data" atom used for identifying the table?
thanks! |
|
|
| Back to top |
|
| michal |
Posted: Mon Sep 17, 2007 1:38 pm |
|
|
|
User
Joined: 20 Jul 2006
Posts: 44
Location: London
|
|
| Back to top |
|
| keymone |
Posted: Mon Sep 17, 2007 8:07 pm |
|
|
|
User
Joined: 17 Sep 2007
Posts: 11
Location: Lviv, Ukraine
|
thanks!!!
there is that "tid() | atom()" all over the documentation about ETS - i thought tables are named by default  |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|