2021-06-03 09:05:38 +02:00
=== relates to: S2209
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
=== on 8 Jul 2015, 17:54:05 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
\[~nicolas.peru] I'm thinking this is applicable to Java, right?
2021-06-03 09:05:38 +02:00
=== on 20 Jul 2015, 11:34:14 Tamas Vajk wrote:
2021-06-02 20:44:38 +02:00
\[~ann.campbell.2] I've modified the description and the sample a bit.
2021-06-03 09:05:38 +02:00
=== on 20 Jul 2015, 14:11:36 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
\[~tamas.vajk] would it also be acceptable to do this?
----
{
Count++;
}
----
i.e. should we add a version of that as an alternate compliant solution?
2021-06-03 09:05:38 +02:00
=== on 21 Jul 2015, 19:15:01 Evgeny Mandrikov wrote:
2021-06-02 20:44:38 +02:00
\[~ann.campbell.2] [~tamas.vajk] why this is not subtask of RSPEC-2209? which one should be implemented in C-Family?
2021-06-03 09:05:38 +02:00
=== on 22 Jul 2015, 06:25:20 Tamas Vajk wrote:
2021-06-02 20:44:38 +02:00
\[~ann.campbell.2] yes, you could use ``Count{plus}{plus}``, but we shouldn't promote that. And as [~evgeny.mandrikov] pointed out there is a separate rule for that. Note that in C# you couldn't write ``++this.Count++``, or ``++myInstance.Count++``.
2021-06-03 09:05:38 +02:00
=== on 22 Jul 2015, 06:27:45 Tamas Vajk wrote:
2021-06-02 20:44:38 +02:00
\[~evgeny.mandrikov] I don't think that we should merge the two RSPECs. RSPEC-2209 says "static" members should be accessed statically. And here we are doing exactly that, but through a derived class.
2021-06-03 09:05:38 +02:00
=== on 22 Jul 2015, 07:02:31 Evgeny Mandrikov wrote:
2021-06-02 20:44:38 +02:00
\[~tamas.vajk] then why RSPEC-2209 marked as "replaced by" this one?
2021-06-03 09:05:38 +02:00
=== on 22 Jul 2015, 07:14:55 Nicolas Peru wrote:
2021-06-02 20:44:38 +02:00
\[~ann.campbell.2] Looks good for java. I let you sort out in which subtask or rspec this should go but principle is ok for me.
2021-06-03 09:05:38 +02:00
=== on 22 Jul 2015, 07:42:12 Tamas Vajk wrote:
2021-06-02 20:44:38 +02:00
\[~evgeny.mandrikov] Good question. I haven't seen that link. We should probably ask [~freddy.mallet] who linked the two.
2021-06-03 09:05:38 +02:00
=== on 23 Jul 2015, 08:51:44 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
I've swapped in a 'related' link instead.
2021-06-03 09:05:38 +02:00
=== on 31 Jul 2015, 11:13:34 Ann Campbell wrote:
2021-06-02 20:44:38 +02:00
Rejected for C# because already implemented by Visual Studio, Roslyn ID "IDE0001"