Short: Behaviour of explode()
From: Matthew Julius <julius.2@wright.edu>
Date: Fri, 08 Jan 1999 16:29:08 -0500
Type: Feature
State: Unclassified
explode("", "\n") returns ({ "" }) Snort. This should not be so.
alfebtcd wrote:
> no? why not? what should it be? all i want to be sure of is that it
> doesn't change every day and that x == implode(explode(x,y)) works for
> all legal x and y.
Erm. I must not have checked this correctly. I thought I tested it and it
did not work correctly. However, after checking again I see that it does
not cause any problems. The change was from the MudOS changelog so I can
only assume I was thinking of something else when I mentioned it.
Ahh yes, now I remember. I was confused in that explode("", "") == ({ })
This is different than, for example, explode("", "anything") == ({ "" })
explode("", whatever) should perhaps always return ({ "" })