Data type 160
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
3 posts
• Page 1 of 1
Data type 160
Why do I get a domain error with data ⎕nappend ntie when 160=⎕DR data? I am running Rel 12.0.5 on 64-bit Vista box.
- rpullman
- Posts: 12
- Joined: Sun Dec 27, 2009 9:29 pm
- Location: Chicago
Re: Data type 160
I mean, why not default to the same data type as the left argument
- rpullman
- Posts: 12
- Joined: Sun Dec 27, 2009 9:29 pm
- Location: Chicago
Re: Data type 160
The first cut at the design did default the data type as you suggest. However, we quickly discovered that if you output text to a native file in several pieces and some of them happen not to have any characters above number 255 (for example if you appended some blanks to the file), you would end up with a file in which some of the characters consumed 2 bytes each, and others consumed a single byte. This would almost definitely cause a problem for anyone trying to read the file.
Therefore, we decided to require an explicit width declaration when appending characters to a native file in the Unicode edition.
Therefore, we decided to require an explicit width declaration when appending characters to a native file in the Unicode edition.
-
Morten|Dyalog - Posts: 394
- Joined: Tue Sep 09, 2008 3:52 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group