Buglet in gen_server?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Buglet in gen_server?

Bruce Fitzsimons-2
Hi,

I've been using the emacs skeletons forever, and these do things such as:

gen_server:start_link({local, app}, app, [], []).

This syntax isn't documented in R9B, and is possibly deprecated, but the
interesting thing is that gen_server:call, and gen_server:start_link both
work, while gen_server:cast doesn't (and fails silently, the dangerous
little monster).

Is the ServerRef -> {local, app} syntax valid? deprecated? invalid?

Thanks,
Bruce





Reply | Threaded
Open this post in threaded view
|

Buglet in gen_server?

Bruce Fitzsimons-2
Oops. Brain-spasm.

{local, app} is valid for gen_server:start_link but not subsequent calls. I
should know this, I have numerous examples where I've managed to do this
successfully. Promise.

Sorry for wasting bandwidth :-)

/Bruce

----- Original Message -----
From: "Bruce Fitzsimons" <Bruce>
To: <erlang-questions>
Sent: Monday, December 02, 2002 9:41 PM
Subject: Buglet in gen_server?


> Hi,
>
> I've been using the emacs skeletons forever, and these do things such as:
>
> gen_server:start_link({local, app}, app, [], []).
>
> This syntax isn't documented in R9B, and is possibly deprecated, but the
> interesting thing is that gen_server:call, and gen_server:start_link both
> work, while gen_server:cast doesn't (and fails silently, the dangerous
> little monster).
>
> Is the ServerRef -> {local, app} syntax valid? deprecated? invalid?
>
> Thanks,
> Bruce
>
>
>
>