2016.01.09 09:03 AM
KDB+ 3.3 2015.11.03 Copyright (C) 1993-2015 Kx Systems
q)f:{x}
q).[f;(),1]
1
q).[f;(),1;{`$x}]
1
q).[`f;(),1]
1
q).[`f;(),1;{`$x}] / imho: this should not throw an error
'type
Kim
2016.01.11 02:51 AM
KDB+ 3.3 2015.11.03 Copyright (C) 1993-2015 Kx Systems
q)f:{x}
q).[f;(),1]
1
q).[f;(),1;{`$x}]
1
q).[`f;(),1]
1
q).[`f;(),1;{`$x}] / imho: this should not throw an error
'type
Kim
2016.01.11 11:59 AM
Yes, the night was too long and forgot that dot with three arguments can also mean functional application.
Actually this breaks my bt library: https://github.com/kimtang/btlib-bt
Thanks,
Kim
Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Andrew Kozyrev
Gesendet: Montag, 11. Januar 2016 11:51
An: Kdb+ Personal Developers
Betreff: [personal kdb+] Re: Is this behavior expected?
Yes, .[fn;arg;errFn] is a catch block and it requires a real fn not its name, otherwise the meaning of this statement would be unclear - is it a catch block or unary function application to the global:
f:{x}
.[`f;();{x 1}]
q)f
1
WBR, Andrey Kozyrev.
суббота, 9 января 2016 г., 20:03:17 UTC+3 пользователь kuentang написал:
KDB+ 3.3 2015.11.03 Copyright (C) 1993-2015 Kx Systems
q)f:{x}
q).[f;(),1]
1
q).[f;(),1;{`$x}]
1
q).[`f;(),1]
1
q).[`f;(),1;{`$x}] / imho: this should not throw an error
'type
Kim
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.