L
Lyndon Samson
Whats the official word on using return to return a value in a block,
rather than just the value of the last expression?
Using ruby 1.8.2 (2004-12-25) [i386-mswin32] I see strange behaviour (
silent crash ) when explicitly using 'return' to return from a block,
yet otherwise the code runs fine.
running under ntsd
eax=3D74fd5054 ebx=3D7ffdf000 ecx=3D0241cdac edx=3D00000000 esi=3D77f8dd80 =
edi=3D00000000
eip=3D77f8dd8b esp=3D0240fe2c ebp=3D0240fef4 iopl=3D0 nv up ei pl z=
r na po nc
cs=3D001b ss=3D0023 ds=3D0023 es=3D0023 fs=3D0038 gs=3D0000 =
efl=3D00000246
ntdll!NtTerminateProcess+b:
77f8dd8b c20800 ret 0x8
Which I can't interpret as anything in particular.
rather than just the value of the last expression?
Using ruby 1.8.2 (2004-12-25) [i386-mswin32] I see strange behaviour (
silent crash ) when explicitly using 'return' to return from a block,
yet otherwise the code runs fine.
running under ntsd
eax=3D74fd5054 ebx=3D7ffdf000 ecx=3D0241cdac edx=3D00000000 esi=3D77f8dd80 =
edi=3D00000000
eip=3D77f8dd8b esp=3D0240fe2c ebp=3D0240fef4 iopl=3D0 nv up ei pl z=
r na po nc
cs=3D001b ss=3D0023 ds=3D0023 es=3D0023 fs=3D0038 gs=3D0000 =
efl=3D00000246
ntdll!NtTerminateProcess+b:
77f8dd8b c20800 ret 0x8
Which I can't interpret as anything in particular.