ok or true?

Shawn Pearce spearce@REDACTED
Sun Feb 22 19:16:39 CET 2004

This has got to be an age old question:

	Return 'ok' or 'true' on success?

I'm building a gen_serial module.  Looking at the gen_tcp API, the
functions return 'ok' when they succeed.  Looking at the port BIF API,
the BIFs all return 'true' when they succeed.

So which is it?  :-)

I've finally got async serial port IO working on Windows XP.  I need
to get error handling in, and properly terminate the external port
servers when the port is closed down, write some edoc, and then I'll
release it to the list.  Should be sometime later this week.

I'd like to get the current serial contrib merged in with this driver
too, so both Windows and UNIX can use the same Erlang code.


  panic: kernel trap (ignored)

More information about the erlang-questions mailing list