Amen. My current religion includes zero tolerance for warnings, 'cause
every once in a while they aren't, and then you're kicking yourself for
tuning them out. :-)
-Pete
On 4/22/20 11:47 AM, Jon Wolfe via TriEmbed wrote:
It’s bad when you’re so used to C++ compilers giving misleading error
messages, that you fail to take the error message at face value when
it’s legitimate 😊
*From: *Pete Soper via TriEmbed <mailto:[email protected]>
*Sent: *Wednesday, April 22, 2020 11:45 AM
*To: *[email protected] <mailto:[email protected]>
*Subject: *Re: [TriEmbed] TriEmbed Digest, Vol 83, Issue 15
Well done, Jon!
-Pete
On 4/22/20 11:43 AM, Jon Wolfe via TriEmbed wrote:
Also, since you’re defining the array at global scope, the size of it
must be a compile time const-expression anyways, so you wouldn’t even
need dynamic memory allocation.
Vec3<unsigned char> framebuffer[imageWidth * imageHeight];
would work., instead of using new. That also has the advantage that
the linker will more easily catch size overruns.
*From: *Jon Wolfe via TriEmbed <mailto:[email protected]>
*Sent: *Wednesday, April 22, 2020 11:36 AM
*To: *Jon Wolfe via TriEmbed <mailto:[email protected]>
*Subject: *Re: [TriEmbed] TriEmbed Digest, Vol 83, Issue 15
I just realized something I’d overlooked.
Your for loop **is** unexpected in your example, it’s outside of any
function.
I just fired up the Arduino and tried my example template code (with
the for loop inside of Setup) , and it worked for me.
_______________________________________________
Triangle, NC Embedded Computing mailing list
To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message:
mailto:[email protected]?subject=unsubscribe
_______________________________________________
Triangle, NC Embedded Computing mailing list
To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message:
mailto:[email protected]?subject=unsubscribe