strange?

Ulf Wiger (AL/EAB) <>
Fri Nov 18 10:58:20 CET 2005


wow.   (:

/Uffe 

> -----Original Message-----
> From:  
> [mailto:] On Behalf Of 
> Sent: den 18 november 2005 10:43
> To: 
> Subject: strange?
> 
> Here's a late submission to the obfuscation contest.
> 
> Look at the code.  Try to figure out what a:c() returns.  Run 
> it on the latest erlang.
> 
> 
> -module(a).
> -compile(export_all).
> 
> c() ->
>     M = {a, b},
>     M:k(a).
> 
> b(k, a) ->
>      wow.
> 
> k(A, T) ->
>     element(2, T).
> 
> 
> 
> /martin
> 



More information about the erlang-questions mailing list