Re: Dimension of slices; scalars versus 1-element arrays?

2005-01-12 Thread David Green
OK, so at issue is the difference between an element of an array ($p5[1]) and a slice (that might contain only one element, @p5[1]), only generalised to n dimensions. (A problem which didn't exist in P5 because there were no higher dimensions!) And we don't want @B[4; 0..6] to reduce to a 1-

Re: Dimension of slices; scalars versus 1-element arrays?

2005-01-12 Thread David Green
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (David Green) wrote: >I can imagine "table context" being reasonably popular. [...] >(Taking a scalar and returning a list is less common, but I can >imagine a 2-D version of 'split' that turns a string into a table) One way to generalise i

taint mode generalization

2005-01-12 Thread Yuval Kogman
Hola... I think taint mode should be made reusable somehow, by implementing it in terms of contagious attribution... For example: my $string : secret = "password"; # the "secret" attr is # contagious, and causes memory to be overwritten before being # returned to the OS