Skip to content

Instantly share code, notes, and snippets.

@Skarsnik
Created January 20, 2016 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skarsnik/2ce915ed020db8fb91fb to your computer and use it in GitHub Desktop.
Save Skarsnik/2ce915ed020db8fb91fb to your computer and use it in GitHub Desktop.
Output:
==_2509GPT::Class::PointerType const char**
PIKO : False
Method 'name' not found for invocant of class 'GPT::Class::PointerType'
in sub resolve-type at /root/piko/cpp/gptrixie/lib/GPT/DumbGenerator.pm6 line 71
--
debug "==" x $cpt ~ $t.id ~ $t.WHAT.perl ~ ' ' ~ $t;
if $t ~~ PointerType {
if $t.ref-type ~~ TypeDefType and $t.ref-type.ref-type ~~ FundamentalType and $t.ref-type.ref-type.name eq 'void' {
return $t.ref-type.name ~ 'Ptr';
}
say "PIKO : " ~ ($t.ref-type ~~ FundamentalType);
LINE 71 return 'Str' if ($t.ref-type ~~ FundamentalType and $t.ref-type.name eq 'char') ||
($t.ref-type ~~ QualifiedType and $t.ref-type.ref-type.name eq 'char');
say "HELLO";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment