Re: [MacRuby-devel] [MacRuby] #759: Website does not layout correctly in some browsers

2010-06-28 Thread MacRuby
#759: Website does not layout correctly in some browsers
-+--
 Reporter:  wsiegr...@…  |Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  blocker  |Milestone:   
Component:  MacRuby  |   Resolution:  fixed
 Keywords:   |  
-+--
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Applied in r4300, thanks!

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Compilation Clarification

2010-06-28 Thread Geoffrey Grosenbach
Can I get a clarification on what the Compilation build step does?

GOAL: Compile a MacRuby app and remove unnecessary Ruby files in order
to achieve the smallest app size possible.

I have a MacRuby 0.6 application built with Xcode. I'm building it
with the Compile option so I get .rbo files in my app bundle. I also
deleted all the /usr/lib/ruby Ruby files in the built app in order to
reduce the final size of the app (25 MB saved):

https://gist.github.com/6af67e1927969b9a47c1

My app uses Ruby's File and Dir classes, but everything else is Cocoa.

Surprisingly, it works on several different machines, even without
MacRuby 0.6 installed.

Do I understand correctly that the code of those files is compiled
into the .rbo files in my app? Or is it getting File and Dir from my
MRI Ruby installation?


-- 
Geoffrey Grosenbach
b...@topfunky.com

PeepCode Screencasts
http://peepcode.com
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Compilation Clarification

2010-06-28 Thread Laurent Sansonetti
Hi Geoffrey,

On Jun 28, 2010, at 11:43 AM, Geoffrey Grosenbach wrote:

> Can I get a clarification on what the Compilation build step does?
> 
> GOAL: Compile a MacRuby app and remove unnecessary Ruby files in order
> to achieve the smallest app size possible.
> 
> I have a MacRuby 0.6 application built with Xcode. I'm building it
> with the Compile option so I get .rbo files in my app bundle. I also
> deleted all the /usr/lib/ruby Ruby files in the built app in order to
> reduce the final size of the app (25 MB saved):
> 
>https://gist.github.com/6af67e1927969b9a47c1

This looks good, although you can also pass --no_stdlib to macruby_deploy to 
achieve the same effect (no need to add another target) :)

> My app uses Ruby's File and Dir classes, but everything else is Cocoa.
> 
> Surprisingly, it works on several different machines, even without
> MacRuby 0.6 installed.
> 
> Do I understand correctly that the code of those files is compiled
> into the .rbo files in my app? Or is it getting File and Dir from my
> MRI Ruby installation?

It's because File and Dir are core / builtin classes (like Array and String), 
they are part of libmacruby.dylib which is still in your .app bundle. You 
deleted the standard library.

HTH,
Laurent
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Laurent Sansonetti
I found a better reduction:

$ VM_VERIFY_IR=1 arch -i386 ./miniruby -e "def foo(*a);42;end; p foo"
42
Incorrect number of arguments passed to called function!
  %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
  to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Incorrect number of arguments passed to called function!
  %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
  to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Broken module found, verification continues.
Error during module verification
Abort trap: 6

I will investigate. Thanks for the report.

Laurent

On Jun 27, 2010, at 4:29 PM, Watson wrote:

> Hi.
> 
>> I will try on a better environment tomorrow. Could you give us the crash 
>> report of miniruby? (It should be somewhere in ~/Library/Logs/CrashReporter).
> 
> I send a crash report.
> 
> Thank you.
> 
> 2010/6/28 Laurent Sansonetti :
>> Hi,
>> 
>> I tried running extconf.rb with 32-bit miniruby but wasn't able to reproduce 
>> the crash in my environment.
>> 
>> $ pwd
>> /Users/lrz/src/macruby-trunk/ext/digest/bubblebabble
>> $ arch -i386 ../../../miniruby -I../../.. -I../../../lib -r rbconfig -e 
>> "RbConfig::CONFIG['libdir'] = '../../..'; require './extconf.rb'"
>> creating Makefile
>> $
>> 
>> I will try on a better environment tomorrow. Could you give us the crash 
>> report of miniruby? (It should be somewhere in ~/Library/Logs/CrashReporter).
>> 
>> Laurent
>> 
>> On Jun 27, 2010, at 11:01 AM, Watson wrote:
>> 
>>> A build error occurs when I specified i386 arch only.
>>> x86_64 arch only or Universal Binary build succeeded.
>>> 
>>> $ RC_ARCHS=i386 rake jobs=2
>>> --- snip ---
>>> ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
>>> "ext/ripper/lib/ripper/sexp.rb" -o "ext/ripper/lib/ripper/sexp.rbo"
>>> ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
>>> "ext/ripper/lib/ripper.rb" -o "ext/ripper/lib/ripper.rbo"
>>> cd ext/bigdecimal && ../../miniruby -I../.. -I../../lib -r rbconfig -e
>>> "RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"cd
>>> ext/digest/bubblebabble && ../../../miniruby -I../../.. -I../../../lib
>>> -r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
>>> './extconf.rb'"
>>> 
>>> Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy->isVarArg()
>>> && NumArgs > FTy->getNumParams())) && "Invoking a function with bad
>>> signature"), function init, file Instructions.cpp, line 559.
>>> Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy->isVarArg()
>>> && NumArgs > FTy->getNumParams())) && "Invoking a function with bad
>>> signature"), function init, file Instructions.cpp, line 559.
>>> sh: line 1: 23500 Abort trap ../../miniruby -I../.. -I../../lib -r
>>> rbconfig -e "RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"
>>> sh: line 1: 23501 Abort trap ../../../miniruby -I../../.. -I../../../lib
>>> -r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
>>> './extconf.rb'"
>>> rake aborted!
>>> Command failed with status (134): [cd ext/bigdecimal && ../../miniruby
>>> -I../]
>>> 
>>> (See full trace by running task with --trace)
>>> 
>>> ___
>>> MacRuby-devel mailing list
>>> MacRuby-devel@lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> ___
>> MacRuby-devel mailing list
>> MacRuby-devel@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Watson

Hi, Laurent.

I watched a similar error message that I reported an issue: 
https://www.macruby.org/trac/ticket/763


Thank you for your reply.

On 2010/06/29, at 9:00, Laurent Sansonetti wrote:


I found a better reduction:

$ VM_VERIFY_IR=1 arch -i386 ./miniruby -e "def foo(*a);42;end; p foo"
42
Incorrect number of arguments passed to called function!
 %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
 to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Incorrect number of arguments passed to called function!
 %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
 to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Broken module found, verification continues.
Error during module verification
Abort trap: 6

I will investigate. Thanks for the report.

Laurent

On Jun 27, 2010, at 4:29 PM, Watson wrote:


Hi.

I will try on a better environment tomorrow. Could you give us the  
crash report of miniruby? (It should be somewhere in ~/Library/ 
Logs/CrashReporter).


I send a crash report.

Thank you.

2010/6/28 Laurent Sansonetti :

Hi,

I tried running extconf.rb with 32-bit miniruby but wasn't able to  
reproduce the crash in my environment.


$ pwd
/Users/lrz/src/macruby-trunk/ext/digest/bubblebabble
$ arch -i386 ../../../miniruby -I../../.. -I../../../lib -r  
rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require './ 
extconf.rb'"

creating Makefile
$

I will try on a better environment tomorrow. Could you give us the  
crash report of miniruby? (It should be somewhere in ~/Library/ 
Logs/CrashReporter).


Laurent

On Jun 27, 2010, at 11:01 AM, Watson wrote:


A build error occurs when I specified i386 arch only.
x86_64 arch only or Universal Binary build succeeded.

$ RC_ARCHS=i386 rake jobs=2
--- snip ---
./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
"ext/ripper/lib/ripper/sexp.rb" -o "ext/ripper/lib/ripper/sexp.rbo"
./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
"ext/ripper/lib/ripper.rb" -o "ext/ripper/lib/ripper.rbo"
cd ext/bigdecimal && ../../miniruby -I../.. -I../../lib -r  
rbconfig -e

"RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"cd
ext/digest/bubblebabble && ../../../miniruby -I../../.. - 
I../../../lib

-r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
'./extconf.rb'"

Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy- 
>isVarArg()

&& NumArgs > FTy->getNumParams())) && "Invoking a function with bad
signature"), function init, file Instructions.cpp, line 559.
Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy- 
>isVarArg()

&& NumArgs > FTy->getNumParams())) && "Invoking a function with bad
signature"), function init, file Instructions.cpp, line 559.
sh: line 1: 23500 Abort trap ../../miniruby -I../.. -I../../lib -r
rbconfig -e "RbConfig::CONFIG['libdir'] = '../..'; require './ 
extconf.rb'"
sh: line 1: 23501 Abort trap ../../../miniruby -I../../.. - 
I../../../lib

-r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
'./extconf.rb'"
rake aborted!
Command failed with status (134): [cd ext/bigdecimal && ../../ 
miniruby

-I../]

(See full trace by running task with --trace)

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Compilation Clarification

2010-06-28 Thread Geoffrey Grosenbach
On Mon, Jun 28, 2010 at 1:20 PM, Laurent Sansonetti
 wrote:
> It's because File and Dir are core / builtin classes (like Array and String), 
> they are part of libmacruby.dylib which is still in your .app bundle. You 
> deleted the standard library.

That makes sense. I'll use the --no_stdlib flag as suggested, which
cuts my app size in half.

Thanks!

-- 
Geoffrey Grosenbach

PeepCode Screencasts
http://peepcode.com
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Laurent Sansonetti
I believe the problem should now be fixed in r4303, can you try again?

#763 seems unrelated to the change I made but it's in the same area 
(interpreter), I will have a look too.

Laurent

On Jun 28, 2010, at 5:16 PM, Watson wrote:

> Hi, Laurent.
> 
> I watched a similar error message that I reported an issue: 
> https://www.macruby.org/trac/ticket/763
> 
> 
> Thank you for your reply.
> 
> On 2010/06/29, at 9:00, Laurent Sansonetti wrote:
> 
>> I found a better reduction:
>> 
>> $ VM_VERIFY_IR=1 arch -i386 ./miniruby -e "def foo(*a);42;end; p foo"
>> 42
>> Incorrect number of arguments passed to called function!
>> %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
>> to label %normal unwind label %rescue   ;  [#uses=1]
>> Broken module found, verification continues.
>> Incorrect number of arguments passed to called function!
>> %2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
>> to label %normal unwind label %rescue   ;  [#uses=1]
>> Broken module found, verification continues.
>> Broken module found, verification continues.
>> Error during module verification
>> Abort trap: 6
>> 
>> I will investigate. Thanks for the report.
>> 
>> Laurent
>> 
>> On Jun 27, 2010, at 4:29 PM, Watson wrote:
>> 
>>> Hi.
>>> 
 I will try on a better environment tomorrow. Could you give us the crash 
 report of miniruby? (It should be somewhere in 
 ~/Library/Logs/CrashReporter).
>>> 
>>> I send a crash report.
>>> 
>>> Thank you.
>>> 
>>> 2010/6/28 Laurent Sansonetti :
 Hi,
 
 I tried running extconf.rb with 32-bit miniruby but wasn't able to 
 reproduce the crash in my environment.
 
 $ pwd
 /Users/lrz/src/macruby-trunk/ext/digest/bubblebabble
 $ arch -i386 ../../../miniruby -I../../.. -I../../../lib -r rbconfig -e 
 "RbConfig::CONFIG['libdir'] = '../../..'; require './extconf.rb'"
 creating Makefile
 $
 
 I will try on a better environment tomorrow. Could you give us the crash 
 report of miniruby? (It should be somewhere in 
 ~/Library/Logs/CrashReporter).
 
 Laurent
 
 On Jun 27, 2010, at 11:01 AM, Watson wrote:
 
> A build error occurs when I specified i386 arch only.
> x86_64 arch only or Universal Binary build succeeded.
> 
> $ RC_ARCHS=i386 rake jobs=2
> --- snip ---
> ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
> "ext/ripper/lib/ripper/sexp.rb" -o "ext/ripper/lib/ripper/sexp.rbo"
> ./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
> "ext/ripper/lib/ripper.rb" -o "ext/ripper/lib/ripper.rbo"
> cd ext/bigdecimal && ../../miniruby -I../.. -I../../lib -r rbconfig -e
> "RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"cd
> ext/digest/bubblebabble && ../../../miniruby -I../../.. -I../../../lib
> -r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
> './extconf.rb'"
> 
> Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy->isVarArg()
> && NumArgs > FTy->getNumParams())) && "Invoking a function with bad
> signature"), function init, file Instructions.cpp, line 559.
> Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy->isVarArg()
> && NumArgs > FTy->getNumParams())) && "Invoking a function with bad
> signature"), function init, file Instructions.cpp, line 559.
> sh: line 1: 23500 Abort trap ../../miniruby -I../.. -I../../lib -r
> rbconfig -e "RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"
> sh: line 1: 23501 Abort trap ../../../miniruby -I../../.. -I../../../lib
> -r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
> './extconf.rb'"
> rake aborted!
> Command failed with status (134): [cd ext/bigdecimal && ../../miniruby
> -I../]
> 
> (See full trace by running task with --trace)
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 
 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 
>>> ___
>>> MacRuby-devel mailing list
>>> MacRuby-devel@lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> ___
>> MacRuby-devel mailing list
>> MacRuby-devel@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Compilation Clarification

2010-06-28 Thread Laurent Sansonetti
On Jun 28, 2010, at 5:56 PM, Geoffrey Grosenbach wrote:

> On Mon, Jun 28, 2010 at 1:20 PM, Laurent Sansonetti
>  wrote:
>> It's because File and Dir are core / builtin classes (like Array and 
>> String), they are part of libmacruby.dylib which is still in your .app 
>> bundle. You deleted the standard library.
> 
> That makes sense. I'll use the --no_stdlib flag as suggested, which
> cuts my app size in half.

If you still want a cut out space, I recommend running `strip -x' on your main 
executable and .rbo files. Finally, if you only want to target 64-bit 
environments (even if there are still people using 32-bit only macs), you can 
trim out the 32-bit parts of each binary file, using `lipo -remove', which 
should cut in half the overall size too.

In the upcoming 0.7 release static compilation will be permitted, you will be 
able to generate a standalone binary that contains both the MacRuby runtime 
(some features disabled) and your application code, in about 1.5MB for 
regular-size apps.

Laurent
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] A build error occurs that specified i368 arch with Trunk Head.

2010-06-28 Thread Watson

I was able to build with r4303 :)


Thank you!

On 2010/06/29, at 10:13, Laurent Sansonetti wrote:


I believe the problem should now be fixed in r4303, can you try again?

#763 seems unrelated to the change I made but it's in the same area  
(interpreter), I will have a look too.


Laurent

On Jun 28, 2010, at 5:16 PM, Watson wrote:


Hi, Laurent.

I watched a similar error message that I reported an issue: 
https://www.macruby.org/trac/ticket/763


Thank you for your reply.

On 2010/06/29, at 9:00, Laurent Sansonetti wrote:


I found a better reduction:

$ VM_VERIFY_IR=1 arch -i386 ./miniruby -e "def foo(*a);42;end; p  
foo"

42
Incorrect number of arguments passed to called function!
%2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
   to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Incorrect number of arguments passed to called function!
%2 = invoke i32 @ruby_scope1(i32 %0, i8* %1)
   to label %normal unwind label %rescue   ;  [#uses=1]
Broken module found, verification continues.
Broken module found, verification continues.
Error during module verification
Abort trap: 6

I will investigate. Thanks for the report.

Laurent

On Jun 27, 2010, at 4:29 PM, Watson wrote:


Hi.

I will try on a better environment tomorrow. Could you give us  
the crash report of miniruby? (It should be somewhere in ~/ 
Library/Logs/CrashReporter).


I send a crash report.

Thank you.

2010/6/28 Laurent Sansonetti :

Hi,

I tried running extconf.rb with 32-bit miniruby but wasn't able  
to reproduce the crash in my environment.


$ pwd
/Users/lrz/src/macruby-trunk/ext/digest/bubblebabble
$ arch -i386 ../../../miniruby -I../../.. -I../../../lib -r  
rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require './ 
extconf.rb'"

creating Makefile
$

I will try on a better environment tomorrow. Could you give us  
the crash report of miniruby? (It should be somewhere in ~/ 
Library/Logs/CrashReporter).


Laurent

On Jun 27, 2010, at 11:01 AM, Watson wrote:


A build error occurs when I specified i386 arch only.
x86_64 arch only or Universal Binary build succeeded.

$ RC_ARCHS=i386 rake jobs=2
--- snip ---
./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
"ext/ripper/lib/ripper/sexp.rb" -o "ext/ripper/lib/ripper/ 
sexp.rbo"

./miniruby -I. -I./lib bin/rubyc --internal --arch i386 -C
"ext/ripper/lib/ripper.rb" -o "ext/ripper/lib/ripper.rbo"
cd ext/bigdecimal && ../../miniruby -I../.. -I../../lib -r  
rbconfig -e

"RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"cd
ext/digest/bubblebabble && ../../../miniruby -I../../.. - 
I../../../lib

-r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
'./extconf.rb'"

Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy- 
>isVarArg()
&& NumArgs > FTy->getNumParams())) && "Invoking a function with  
bad

signature"), function init, file Instructions.cpp, line 559.
Assertion failed: (((NumArgs == FTy->getNumParams()) || (FTy- 
>isVarArg()
&& NumArgs > FTy->getNumParams())) && "Invoking a function with  
bad

signature"), function init, file Instructions.cpp, line 559.
sh: line 1: 23500 Abort trap ../../miniruby -I../.. -I../../lib  
-r
rbconfig -e "RbConfig::CONFIG['libdir'] = '../..'; require './ 
extconf.rb'"
sh: line 1: 23501 Abort trap ../../../miniruby -I../../.. - 
I../../../lib

-r rbconfig -e "RbConfig::CONFIG['libdir'] = '../../..'; require
'./extconf.rb'"
rake aborted!
Command failed with status (134): [cd ext/bigdecimal && ../../ 
miniruby

-I../]

(See full trace by running task with --trace)

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #764: Weird instance variable value of C extension.

2010-06-28 Thread MacRuby
#764: Weird instance variable value of C extension.
+---
 Reporter:  cheke...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:  MacRuby 0.6  
Component:  MacRuby |Keywords:  extension
+---
 When expanding a class defined in a C extension, the new instance
 variables have strange default values (correct value should be nil).

 Try execute following code in a ruby file (if input and run in macirb, the
 output is correct).

 {{{
   require 'bigdecimal'

   class BigDecimal
  def should_be_nil
  p @one
  p @two
  p @three
  p @four
  p @five
  p @six
  p @seven
  end
   end

   BigDecimal.new('0').should_be_nil
 }}}

 In my dev environment (SL10.6.4, MacRuby 0.6), the output is:

 {{{
 #
 true
 0
 1073741824
 false
 false
 false
 }}}
 --

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel