Cannot write NS with a object instance to a component

Writing and using Classes in Dyalog APL

Cannot write NS with a object instance to a component

Postby norbertjurkiewicz84 on Fri Feb 03, 2012 8:20 pm

Just a suggestion...

Can the []FAPPEND errors be more descriptive. I was racking my head why I couldn't write a NS containing variables to a component. I finally realized that I had a instance of an object in there. The Domain Error wasn't too helpful.
(It's the little things that make the difference :-)
User avatar
norbertjurkiewicz84
 
Posts: 60
Joined: Mon Nov 01, 2010 7:26 pm

Re: Cannot write NS with a object instance to a component

Postby Morten|Dyalog on Sat Feb 04, 2012 12:08 pm

One of the key features of version 13.1 will be ⎕DMX (Diagnostic Message - eXtended). In addition to being a thread safe replacement for ⎕DM/⎕EN, this new system object will allow the interpreter to provide more information about errors. We're still working on deciding exactly what message to issue for the case that you have pointed out, but there will be some additional information.

The following session output from a Beta version of 13.1 shows an experimental user command "]explain" which uses ⎕DMX (the name of the ucmd may change before the release :-)

      1+'a'
DOMAIN ERROR
1+'a'

]explain
Numeric value required
'c:\xxx\yyy\zzz' ⎕FCREATE 0
FILE NAME ERROR
'c:\xxx\yyy\zzz'⎕FCREATE 0

]explain
Unable to create file: The system cannot find the path specified.
]explain –full
FILE NAME ERROR
'c:\xxx\yyy\zzz'⎕FCREATE 0

[Component file system error #0010]: Unable to create file
[Windows GetLastError() returned 3]: The system cannot find the path specified.
Internal location: qfile1.c 3599
APL Version: Windows 13.1.11723.0 W Development (BuildID=7469c9d0)
More help at: http://help.dyalog.com/dmx/13.1/Compone ... -system/10

⎕DMX.(↑{⍵ (⍕⍎⍵)}¨⎕NL -2)
Category Component file system
DM FILE NAME ERROR 'c:\xxx\yyy\zzz'⎕FCREATE 0 ∧
EN 22
ENX 10
HelpURL http://help.dyalog.com/dmx/13.1/Compone ... -system/10
InternalLocation qfile1.c 3599
Message Unable to create file
OSError 1 3 The system cannot find the path specified.
Vendor Dyalog
User avatar
Morten|Dyalog
 
Posts: 388
Joined: Tue Sep 09, 2008 3:52 pm


Return to Object Oriented Programming

Who is online

Users browsing this forum: No registered users and 1 guest