grough
1
Hi,
When I run this code in a sketch:
println(this);
I see this in the console:
sketch_221111b@31393958
What datatype or class does this belong to?
I’m trying to write a function that accepts this as an argument, but I got stuck trying to figure out what type the parameter should be.
Thank you
debxyz
2
Hello!
“This” is not a datatype. Read more here:

Chrisir
3
grough
4
I’m trying to write a function that accepts this as an argument, but I got stuck trying to figure out what type the parameter should be.
After following the link shared above (marked as solution), I learned that that type of such an argument should be PApplet. Thanks for your help.
PApplet is the super datatype.
But the actual datatype is the name of the 1st tab w/o the extension “.pde”.
And inside a class it’s the class