sequence
- Posted by tone.skoda at siol.net
May 28, 2002
This is a multi-part message in MIME format.
------=_NextPart_000_0020_01C206C7.B2C72790
charset="iso-8859-2"
This is strange:
=20
sequence s
s =3D {1,2,3,4,5,6,7,8,9}
s [2..4] =3D 99
?s
instead of displaying {1,99,5,6,7,8,9}
it displays {1,99,99,99,5,6,7,8,9}
it would be more logical if it would do the thing nr 1.
AND:
?routine_id ("power")
why is this -1? this is also not logical.
I know why these two things do what they do but they are not logical, or =
say intiuitive.
------=_NextPart_000_0020_01C206C7.B2C72790
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>This is strange:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> sequence =
s<BR> =20
s =3D {1,2,3,4,5,6,7,8,9}<BR> s [2..4] =3D=20
99<BR> ?s</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>instead of displaying =
{1,99,5,6,7,8,9}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it displays =
{1,99,99,99,5,6,7,8,9}<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it would be more logical if it would do =
the thing=20
nr 1.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>AND:</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>?routine_id =
("power")</FONT></FONT></DIV>
<DIV><FONT face=3DArial>
<DIV><FONT face=3DArial><FONT size=3D2>why is this -1? this is also not=20
logical.</FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I know why these two things do what they do but they =
are not=20
------=_NextPart_000_0020_01C206C7.B2C72790--
|
Not Categorized, Please Help
|
|