January 05, 2023
On Thursday, 5 January 2023 at 05:59:26 UTC, Ali Çehreli wrote:

> While we're here, you can force the class objects to be on the stack as well:
>
>     scope MyClassVar1 = new MyClass();
>
> I replaced 'auto' with 'scope'.
>
> Ali

Very interesting.  Thanks Ali.


January 05, 2023
On Thursday, 5 January 2023 at 17:23:39 UTC, H. S. Teoh wrote:
> On Thu, Jan 05, 2023 at 06:32:47AM +0000, areYouSureAboutThat
>> Also, I cannot read hex,
> [...]
>
> IMNSHO, anyone who claims to be a programmer should at least know that much.

??

Well, like all, I learnt this at uni. .. as well as lot of other useless stuff.

But in all my years as a well paid and productive 'programmer' ;-) .. I cannot recall ever, a consistent need to read hex (using by brain, that is).

As such, those neuron connections needed to read hex do not exist anymore.

Even the neurons in my brain are smarted than Knuth.


February 01, 2023
On Thursday, 5 January 2023 at 05:59:26 UTC, Ali Çehreli wrote:
> On 1/4/23 20:04, Paul wrote:
> >> (Again, there is no problem here; we are just learning.)
> >> Ali
> >
> > Do I have this much right?
>
> > ..with this output?
>
> Looks good to me.
>
> While we're here, you can force the class objects to be on the stack as well:
>
>     scope MyClassVar1 = new MyClass();
>
> I replaced 'auto' with 'scope'.
>
> Ali

I was tinkering with this use of 'scope' and the math for pointer location, object size, and alignment started working out.
1 2 3
Next ›   Last »