Re: C-Strings and LCB

2017-12-28 Thread Richmond Mathewson via use-livecode

Thank you very much.

http://forums.livecode.com/viewtopic.php?f=8=30352

Richmond.

On 28/12/2017 3:37 pm, Mark Waddingham via use-livecode wrote:

In LCB a string is a string and a number is a number - there's an operator 
which tests whether a string 'looks like' a number and can optionally convert 
it.

Strings in LCB are the same as in LCS - counted and not nul terminated (so they 
can contain the NUL 'char' - i.e. Code 0). It does have 'bridging' string types 
which are nul terminated - they are there to support calling a foreign 
functions which use such strings.

Warmest Regards,

Mark.

Sent from my iPhone


On 28 Dec 2017, at 11:36, Richmond Mathewson via use-livecode 
<use-livecode@lists.runrev.com> wrote:

Return-path: <use-livecode-boun...@lists.runrev.com>
Envelope-to: m...@livecode.com
Delivery-date: Thu, 28 Dec 2017 12:37:11 +0100
Received: from localhost ([127.0.0.1]:34664 helo=meg.on-rev.com)
by meg.on-rev.com with esmtp (Exim 4.85)
(envelope-from <use-livecode-boun...@lists.runrev.com>)
id 1eUWUe-mS-CH; Thu, 28 Dec 2017 12:37:00 +0100
Received: from mail-wm0-f48.google.com ([74.125.82.48]:44070)
by meg.on-rev.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
(Exim 4.85) (envelope-from <richmondmathew...@gmail.com>)
id 1eUWUc-m8-J1
for use-livecode@lists.runrev.com; Thu, 28 Dec 2017 12:36:58 +0100
Received: by mail-wm0-f48.google.com with SMTP id t8so43447200wmc.3
for <use-livecode@lists.runrev.com>;
Thu, 28 Dec 2017 03:36:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=to:from:subject:message-id:date:user-agent:mime-version;
bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
b=OIEL4yoFfUOHFAIa8rf5Mvdn/MGFkGw26BTNjW360KKY/+tjXUQfx4SJ0gH0Orvfty
esQP7omZ6F0SwVFxQB3C9szyaRL+qojSdqM4jKMxWsJ7lpbgqFTDeLqSnP+oqyx2o2WF
Dqz/Ox5wTA34MTid7XiqnvcUEjc5XIjTcA2VX8LPZOGRYXbK0kbmVRzRBgOPuL1Yoe8f
eW3LA84QOti8Oo2tq95b3MkXTzFqTG7nHLpgBHLSbdqhWyNcNVeAvfWrEbyJMXxMIoPg
6BeUcyx6wfL+yil0JubbXG+P61t1PaRMo3BOVUjVN0rdcgpijVEyluazOwifj9Uj+kdH
VSww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:to:from:subject:message-id:date:user-agent
:mime-version;
bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
b=LnAZ1TMoOT/k1AnQueTQWxrg8lypBXlObv9cGlSE0csvVIBPsI2MNxsDCDbMSrGA9U
uLf+SU37tqHYnkf2Sq+axtVWfEWsaaSjh31rz3an3//QtoLTh51NeypvMeKXAGzBk9gi
aUpF5WwZTBy1sGIk/QKG4ANwe6FJbVVP53RA+8XU41KqxuOiRpWrDvHH5yq6BwuRh2ZI
IOU0fPiKN+45N5pmaSlKNZE19KqeCZNrVM1o0nZVun8ufROY3Fxvri4hCCUlT65KGntz
o5PREp8yNAgRiN1V5JBrudSGeDsVm/ijVV1Ygsi4CnhVYuKSyi8lKiGqDV6C/iAd3oNY
EVww==
X-Gm-Message-State: AKGB3mKhvTSnJXeEYKqHGe+f6DB1WmmZKLxwB3HhZkXra0kS6d7ak8XS
vLgGTo3qz25XBkgwxlHSURZIC4T8
X-Google-Smtp-Source: 
ACJfBothivSy3G1shInQ9+2IJc7/poqx6XAxD0viU3aWwTA4MnEnZ5QyVjTqzVuRCOn8RKX4gIJqcQ==
X-Received: by 10.80.139.203 with SMTP id n11mr39211890edn.200.151446101;   
 Thu, 28 Dec 2017 03:36:57 -0800 (PST)
Received: from Richmond-Mathewsons-iMac.local ([5.53.208.66])
by smtp.gmail.com with ESMTPSA id
y1sm30194472edl.39.2017.12.28.03.36.56
for <use-livecode@lists.runrev.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 28 Dec 2017 03:36:57 -0800 (PST)
To: How to use LiveCode <use-livecode@lists.runrev.com>
Subject: C-Strings and LCB
Message-ID: <57917b53-15dc-7f96-cb39-fd92faa47...@gmail.com>
Date: Thu, 28 Dec 2017 13:36:55 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:45.0)
Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.20
X-BeenThere: use-livecode@lists.runrev.com
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: How to use LiveCode 
List-Unsubscribe: <http://lists.runrev.com/mailman/options/use-livecode>,
<mailto:use-livecode-requ...@lists.runrev.com?subject=unsubscribe>
List-Archive: <http://lists.runrev.com/pipermail/use-livecode/>
List-Post: <mailto:use-livecode@lists.runrev.com>
List-Help: <mailto:use-livecode-requ...@lists.runrev.com?subject=help>
List-Subscribe: <http://lists.runrev.com/mailman/listinfo/use-livecode>,
<mailto:use-livecode-requ...@lists.runrev.com?subject=subscribe>
From: Richmond Mathewson via use-livecode <use-livecode@lists.runrev.com>
Reply-To: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Richmond Mathewson <richmondmathew...@gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: use-livecode-boun...@lists.runrev.com
Sender: "use-livecode" <use-livecode-boun...@lists.runrev.com>

I'm not sure why I'm asking these questions because I don't think I really 
understand them . . .

1. Does LCB differentiate between numeric variable and string variables (those 
that con

Re: C-Strings and LCB

2017-12-28 Thread Mark Waddingham via use-livecode
In LCB a string is a string and a number is a number - there's an operator 
which tests whether a string 'looks like' a number and can optionally convert 
it.

Strings in LCB are the same as in LCS - counted and not nul terminated (so they 
can contain the NUL 'char' - i.e. Code 0). It does have 'bridging' string types 
which are nul terminated - they are there to support calling a foreign 
functions which use such strings.

Warmest Regards,

Mark.

Sent from my iPhone

> On 28 Dec 2017, at 11:36, Richmond Mathewson via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Return-path: <use-livecode-boun...@lists.runrev.com>
> Envelope-to: m...@livecode.com
> Delivery-date: Thu, 28 Dec 2017 12:37:11 +0100
> Received: from localhost ([127.0.0.1]:34664 helo=meg.on-rev.com)
>by meg.on-rev.com with esmtp (Exim 4.85)
>(envelope-from <use-livecode-boun...@lists.runrev.com>)
>id 1eUWUe-mS-CH; Thu, 28 Dec 2017 12:37:00 +0100
> Received: from mail-wm0-f48.google.com ([74.125.82.48]:44070)
>by meg.on-rev.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
>(Exim 4.85) (envelope-from <richmondmathew...@gmail.com>)
>id 1eUWUc-m8-J1
>for use-livecode@lists.runrev.com; Thu, 28 Dec 2017 12:36:58 +0100
> Received: by mail-wm0-f48.google.com with SMTP id t8so43447200wmc.3
>for <use-livecode@lists.runrev.com>;
>Thu, 28 Dec 2017 03:36:58 -0800 (PST)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
>h=to:from:subject:message-id:date:user-agent:mime-version;
>bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
>b=OIEL4yoFfUOHFAIa8rf5Mvdn/MGFkGw26BTNjW360KKY/+tjXUQfx4SJ0gH0Orvfty
>esQP7omZ6F0SwVFxQB3C9szyaRL+qojSdqM4jKMxWsJ7lpbgqFTDeLqSnP+oqyx2o2WF
>Dqz/Ox5wTA34MTid7XiqnvcUEjc5XIjTcA2VX8LPZOGRYXbK0kbmVRzRBgOPuL1Yoe8f
>eW3LA84QOti8Oo2tq95b3MkXTzFqTG7nHLpgBHLSbdqhWyNcNVeAvfWrEbyJMXxMIoPg
>6BeUcyx6wfL+yil0JubbXG+P61t1PaRMo3BOVUjVN0rdcgpijVEyluazOwifj9Uj+kdH
>VSww==
> X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>d=1e100.net; s=20161025;
>h=x-gm-message-state:to:from:subject:message-id:date:user-agent
>:mime-version;
>bh=eSbYftgjjTzxXn5Il7a1Uigxxm0cdIfAFIsFsFVYSjI=;
>b=LnAZ1TMoOT/k1AnQueTQWxrg8lypBXlObv9cGlSE0csvVIBPsI2MNxsDCDbMSrGA9U
>uLf+SU37tqHYnkf2Sq+axtVWfEWsaaSjh31rz3an3//QtoLTh51NeypvMeKXAGzBk9gi
>aUpF5WwZTBy1sGIk/QKG4ANwe6FJbVVP53RA+8XU41KqxuOiRpWrDvHH5yq6BwuRh2ZI
>IOU0fPiKN+45N5pmaSlKNZE19KqeCZNrVM1o0nZVun8ufROY3Fxvri4hCCUlT65KGntz
>o5PREp8yNAgRiN1V5JBrudSGeDsVm/ijVV1Ygsi4CnhVYuKSyi8lKiGqDV6C/iAd3oNY
>EVww==
> X-Gm-Message-State: AKGB3mKhvTSnJXeEYKqHGe+f6DB1WmmZKLxwB3HhZkXra0kS6d7ak8XS
>vLgGTo3qz25XBkgwxlHSURZIC4T8
> X-Google-Smtp-Source: 
> ACJfBothivSy3G1shInQ9+2IJc7/poqx6XAxD0viU3aWwTA4MnEnZ5QyVjTqzVuRCOn8RKX4gIJqcQ==
> X-Received: by 10.80.139.203 with SMTP id n11mr39211890edn.200.151446101; 
>Thu, 28 Dec 2017 03:36:57 -0800 (PST)
> Received: from Richmond-Mathewsons-iMac.local ([5.53.208.66])
>by smtp.gmail.com with ESMTPSA id
>y1sm30194472edl.39.2017.12.28.03.36.56
>for <use-livecode@lists.runrev.com>
>    (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
>Thu, 28 Dec 2017 03:36:57 -0800 (PST)
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Subject: C-Strings and LCB
> Message-ID: <57917b53-15dc-7f96-cb39-fd92faa47...@gmail.com>
> Date: Thu, 28 Dec 2017 13:36:55 +0200
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:45.0)
>Gecko/20100101 Thunderbird/45.8.0
> MIME-Version: 1.0
> X-Content-Filtered-By: Mailman/MimeDel 2.1.20
> X-BeenThere: use-livecode@lists.runrev.com
> X-Mailman-Version: 2.1.20
> Precedence: list
> List-Id: How to use LiveCode 
> List-Unsubscribe: <http://lists.runrev.com/mailman/options/use-livecode>,
><mailto:use-livecode-requ...@lists.runrev.com?subject=unsubscribe>
> List-Archive: <http://lists.runrev.com/pipermail/use-livecode/>
> List-Post: <mailto:use-livecode@lists.runrev.com>
> List-Help: <mailto:use-livecode-requ...@lists.runrev.com?subject=help>
> List-Subscribe: <http://lists.runrev.com/mailman/listinfo/use-livecode>,
><mailto:use-livecode-requ...@lists.runrev.com?subject=subscribe>
> From: Richmond Mathewson via use-livecode <use-livecode@lists.runrev.com>
> Reply-To: How to use LiveCode <use-livecode@lists.runrev.com>
> Cc: Richmond Mathewson <richmondmathew...@gmail.com>
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset="us-ascii"; Format="flowed"
> Errors-To: use-livecode-boun...@lists.runrev.com
> Sender: "use-livecode" <use-livecode-boun...@lists.runrev.com

C-Strings and LCB

2017-12-28 Thread Richmond Mathewson via use-livecode
I'm not sure why I'm asking these questions because I don't think I 
really understand them . . .


1. Does LCB differentiate between numeric variable and string variables 
(those that contain text)?


2. If so, are LCB string variables null-terminated?

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode