Skip to content

Instantly share code, notes, and snippets.

@osdrv
Created March 15, 2012 05:51
Show Gist options
  • Save osdrv/2042245 to your computer and use it in GitHub Desktop.
Save osdrv/2042245 to your computer and use it in GitHub Desktop.
undeclared function fatal error
main() {
void a() {
void b() {
print( "b" );
}
b();
}
a();
}
main() {
void a() {
void b() {
print( "b" );
}
}
b(); // undeclared function fatal error
}
main() {
void a() {
void b() {
print( "b" );
}
}
try{
b(); // same fatal error
} catch ( Exception e ) {
print( e );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment