|
|
Label: ♦english
♦feature request
Nightwalker
created at Saturday, 2010-07-03, 14:37:09
1 Replies, 175 Hits
I think I found few minor things in Dao which need to be somewhat improved.
2) It appears operator ?? works properly with simple (non-aggregate) expressions only. Something like
if ((value := Map[key]) ??)
writeln(key, '=>', value);
won't work as expected. I suppose the ability to use this operator with complex expressions (brackets support, in other words) would be both convenient and correct.
3) Casting string to int , for instance, returns zero in the case of error. Thus it is impossible to determine if the operation has failed or the string really does contain zero (without checking the string manually). Raising exception instead would probably make things clear, especially assuming that operator ?? could be used in such case.
Comments
fu commented at Sunday, 2010-07-04, 04:29:24
- Class member accessing:
I thought it is more logical to have the access permission granted based on class instance. But it is more practical to grant permission based class, as you pointed out. Class based permission is also used in C++. I will also switch it to class based too.
- Assertion operator:
The assertion operator works by suppressing the raised exceptions. It is straightforward to suppress the exception raised by the last instruction. This simple handling is not suitable for complex expression. But just while I am writing, it came to mind that it should be possible to compile assertion in a way similar to compile try{}rescue{} statements, this should work with arbitrary complex expression. I will try it out.
- String to number conversion:
You are right, it is better to raise an expression when the conversion is failed.
|
| | | 1 | 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
klabim: ...
Ok, I found it. It can be so easy by reading the documentation :- ). I have overseen the keyword glob ... (Aug.21,18:09)
klabim: sharing vars between scripts
Hi,
how can I share a variable between 2 scripts in an embedded environment?
For example:
script 1: ... (Aug.21,17:55)
|