This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
struct A { | |
std::string text; | |
int val; | |
}; | |
struct B { | |
int val; | |
int padding[]; | |
}; | |
struct C { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my Mu $prev; | |
sub term:<prev>() is export { $prev } | |
my $comp := nqp::getcomp('perl6'); | |
$comp.HOW.add_method($comp, 'autoprint', method (Mu \value) { | |
$prev := value; | |
self.interactive_result(value) | |
unless nqp::tellfh(nqp::getstdout()) > $*AUTOPRINTPOS; | |
}); | |
$comp.HOW.compose($comp); |