1. assigned value

------=_NextPart_000_0007_01BFAEEF.60941F00
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

how do you find out if atom has got assigned value to it, or is no value =
in member of a sequence?

atom a --hasn't assigned value

a=3D3 --has assigned value

seuqence s=3D"ABC"

s[0] --has no value

------=_NextPart_000_0007_01BFAEEF.60941F00
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>how do you find out if atom has got =
assigned value=20
to it, or is no value in member of a sequence?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>atom a --hasn't =
assigned&nbsp;value</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>a=3D3 --has assigned value</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>seuqence s=3D"ABC"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>s[0] --has no =

------=_NextPart_000_0007_01BFAEEF.60941F00--

new topic     » topic index » view message » categorize

2. Re: assigned value

On Tue, 25 Apr 2000 19:49:32 +0200, =?iso-8859-2?B?qWtvZGE=?=
<tone.skoda at SIOL.NET> wrote:

>how do you find out if atom has got assigned value to it, or is no value
in member of a sequence?
>
>atom a --hasn't assigned value
>
>a=3 --has assigned value
>
>seuqence s="ABC"
>
>s[0] --has no value
>

  index's in Euphoria start at one not ( not at zero like "C" )

new topic     » goto parent     » topic index » view message » categorize

3. Re: assigned value

Skoda writes:
> How do you find out if atom has got assigned value to it,
> or is no value in member of a sequence?

There is no way to test an atom variable to see if it has
a value yet. You should just initialize it with an
obviously bogus value, then test for that value.

There is no way to create a sequence that has
uninitialized elements.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu