Post Reply 
Type control
02-22-2015, 08:47 PM
Post: #4
RE: Type control
(02-22-2015 04:46 PM)salvomic Wrote:  Other: why in CAS I could write
IF ((type(k) != DOM_LIST) OR (type(p) != DOM_LIST)) THEN

and in non-CAS it doesn't works?
I must use
IF ((type(k) ≠ 6) OR (type(p) ≠ 6)) THEN
instead?

The "type" command is different from the "TYPE" command (see their respective help screens in the Toolbox Catalog). Both work correctly in CAS, but Home's parser interprets "type" as "TYPE", which causes the following unexpectedly different results:

CAS: TYPE( {1,2,3} ) --> 6
CAS: Type( {1,2,3} ) --> 6
CAS: type( {1,2,3} ) --> DOM_LIST
CAS: type( {1,2,3} )+0 --> 7

Home: TYPE( {1,2,3} ) --> 6
Home: Type( {1,2,3} ) --> 6
Home: type( {1,2,3} ) --> 6
Home: type( {1,2,3} )+0 --> 6

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Type control - salvomic - 02-22-2015, 03:42 PM
RE: Type control - Han - 02-22-2015, 04:37 PM
RE: Type control - salvomic - 02-22-2015, 04:46 PM
RE: Type control - Joe Horn - 02-22-2015 08:47 PM
RE: Type control - salvomic - 02-22-2015, 08:52 PM
RE: Type control - Joe Horn - 02-23-2015, 04:17 AM
RE: Type control - salvomic - 02-23-2015, 08:31 AM
RE: Type control - toml_12953 - 02-23-2015, 04:52 PM
RE: Type control - salvomic - 02-23-2015, 05:01 PM
RE: Type control - Joe Horn - 02-23-2015, 11:40 PM
RE: Type control - salvomic - 02-23-2015, 04:51 PM
RE: Type control - Han - 02-23-2015, 05:10 PM
RE: Type control - salvomic - 02-23-2015, 05:40 PM
RE: Type control - Han - 02-23-2015, 07:18 PM
RE: Type control - salvomic - 02-23-2015, 07:29 PM
RE: Type control - salvomic - 03-12-2015, 09:59 AM
RE: Type control - Han - 03-13-2015, 03:04 PM
RE: Type control - salvomic - 03-13-2015, 03:18 PM
RE: Type control - Han - 03-13-2015, 06:14 PM
RE: Type control - salvomic - 03-13-2015, 06:29 PM
RE: Type control - Han - 03-13-2015, 06:34 PM
RE: Type control - salvomic - 03-13-2015, 06:44 PM
RE: Type control - salvomic - 03-13-2015, 10:39 PM
RE: Type control - Han - 03-14-2015, 09:49 AM
RE: Type control - salvomic - 03-14-2015, 10:00 AM
RE: Type control - Angus - 02-24-2015, 06:28 AM
RE: Type control - salvomic - 02-24-2015, 06:34 AM
RE: Type control - Joe Horn - 02-25-2015, 05:52 AM



User(s) browsing this thread: 1 Guest(s)