On Thursday, 7 May 2015 at 11:18:17 UTC, Daniel Kozak wrote:
On Thursday, 7 May 2015 at 11:15:02 UTC, Daniel Kozak wrote:
On Thursday, 7 May 2015 at 11:08:50 UTC, Daniel Kozák wrote:
On Thu, 07 May 2015 10:46:19 +
Lemonfiend via Digitalmars-d-learn
wrote:
On Thursday, 7 May 2015 at 10
On Thursday, 7 May 2015 at 10:19:44 UTC, Lemonfiend wrote:
Is it not possible to have a static function template with the
same name as the non-static version?
struct S
{
int i;
auto foo(T)(int j) {
i=j;
}
static auto foo(T)(int j) {
S s;
s.foo!T(j);
On Thursday, 7 May 2015 at 11:08:50 UTC, Daniel Kozák wrote:
On Thu, 07 May 2015 10:46:19 +
Lemonfiend via Digitalmars-d-learn
wrote:
On Thursday, 7 May 2015 at 10:43:28 UTC, Daniel Kozak wrote:
> On Thursday, 7 May 2015 at 10:39:09 UTC, Daniel Kozák wrote:
>>
>> On Thu, 07 May 2015 10:
On Thursday, 7 May 2015 at 11:15:02 UTC, Daniel Kozak wrote:
On Thursday, 7 May 2015 at 11:08:50 UTC, Daniel Kozák wrote:
On Thu, 07 May 2015 10:46:19 +
Lemonfiend via Digitalmars-d-learn
wrote:
On Thursday, 7 May 2015 at 10:43:28 UTC, Daniel Kozak wrote:
> On Thursday, 7 May 2015 at 1
On Thu, 07 May 2015 10:46:19 +
Lemonfiend via Digitalmars-d-learn
wrote:
> On Thursday, 7 May 2015 at 10:43:28 UTC, Daniel Kozak wrote:
> > On Thursday, 7 May 2015 at 10:39:09 UTC, Daniel Kozák wrote:
> >>
> >> On Thu, 07 May 2015 10:33:44 +
> >> Vadim Lopatin via Digitalmars-d-learn
> >
On Thursday, 7 May 2015 at 10:43:28 UTC, Daniel Kozak wrote:
On Thursday, 7 May 2015 at 10:39:09 UTC, Daniel Kozák wrote:
On Thu, 07 May 2015 10:33:44 +
Vadim Lopatin via Digitalmars-d-learn
wrote:
struct S
{
int i;
auto foo2(T)(int j) {
i=j;
}
static S foo(T)(i
On Thursday, 7 May 2015 at 10:39:09 UTC, Daniel Kozák wrote:
On Thu, 07 May 2015 10:33:44 +
Vadim Lopatin via Digitalmars-d-learn
wrote:
struct S
{
int i;
auto foo2(T)(int j) {
i=j;
}
static S foo(T)(int j) {
S s;
s.foo2!T(j);
retu
On Thursday, May 07, 2015 10:19:42 Lemonfiend via Digitalmars-d-learn wrote:
> Is it not possible to have a static function template with the
> same name as the non-static version?
No. Unfortunately, you can't overload based on static. I believe that it
works if they're overloaded on parameters bu
On Thu, 07 May 2015 10:33:44 +
Vadim Lopatin via Digitalmars-d-learn
wrote:
> struct S
> {
> int i;
>
> auto foo2(T)(int j) {
> i=j;
> }
>
> static S foo(T)(int j) {
> S s;
> s.foo2!T(j);
> return s;
> }
> }
>
> void main()
> {
On Thu, 07 May 2015 10:19:42 +
Lemonfiend via Digitalmars-d-learn
wrote:
> Is it not possible to have a static function template with the
> same name as the non-static version?
>
> struct S
> {
> int i;
>
> auto foo(T)(int j) {
> i=j;
> }
>
> static auto foo(
On Thursday, 7 May 2015 at 10:19:44 UTC, Lemonfiend wrote:
Is it not possible to have a static function template with the
same name as the non-static version?
struct S
{
int i;
auto foo(T)(int j) {
i=j;
}
static auto foo(T)(int j) {
S s;
s.foo!T(j);
On Thu, 07 May 2015 10:19:42 +
Lemonfiend via Digitalmars-d-learn
wrote:
> Is it not possible to have a static function template with the
> same name as the non-static version?
>
> struct S
> {
> int i;
>
> auto foo(T)(int j) {
> i=j;
> }
>
> static auto foo(
12 matches
Mail list logo