On 2/5/23 14:40, ProtectAndHide wrote:

> On Sunday, 5 February 2023 at 10:51:51 UTC, thebluepandabear wrote:
>>
>> It's not a terrible workaround to be honest.
>> ....
>
> The 'terrible' part is this:
>
> - the compiler will allow you to declare a variable of type Algo
> - the compiler will allow you to declare an array with elements of type
> Algo
> - the compiler will allow you to use Algo as a type argument
> - the compiler will allow you to use Algo as a parameter
> - the compiler will allow you to use Algo as a return type

I understand disabling the programmer to do certain things are beneficial e.g. to prevent bugs but those above can all be seen as features. What is so terrible about giving the programmer those powers?

Ali

  • Re: Non-ugly way... Nick Treleaven via Digitalmars-d-learn
    • Re: Non-ugl... thebluepandabear via Digitalmars-d-learn
      • Re: Non... thebluepandabear via Digitalmars-d-learn
        • Re:... ProtectAndHide via Digitalmars-d-learn
          • ... thebluepandabear via Digitalmars-d-learn
            • ... thebluepandabear via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... thebluepandabear via Digitalmars-d-learn
            • ... ProtectAndHide via Digitalmars-d-learn
              • ... ProtectAndHide via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... thebluepandabear via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... ProtectAndHide via Digitalmars-d-learn
              • ... thebluepandabear via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... ProtectAndHide via Digitalmars-d-learn
              • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... ProtectAndHide via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn
              • ... Ali Çehreli via Digitalmars-d-learn

Reply via email to