Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Philipp Pirozhkov's latest activity

Saturday, February 28 2009
23 inline call to a class method fails to compile was created in Reia
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 7:55 AM

    works fine:

    
    class A
      def bar(x)
        foo(x)
    
      def foo(y)
        y
    

    fails to load:

    
    class A
      def bar(x)
        [foo(z) | z in x]
    
      def foo(y)
        y
    ...
Monday, February 23 2009
22 class method is not seen inside a block was updated in Reia
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 2:20 PM
    
    class Foo
      def a(x, lambda)
        ['inside a', x].join(' ').puts()
        lambda()
        ['exiting a', x].join(' ').puts()
    
      def b(y)
        ['inside b', y].joi...
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 2:18 PM

    class Foo def a(x, lambda)

    ['inside a', x].join(' ').puts()
    lambda()
    ['exiting a', x].join(' ').puts()
    
    

    def b(y)

    ['inside b', y].join(' ').puts()
    
    

    def z

    'z...
Saturday, January 31 2009
19 mutiline """ does not work in ire was updated in Reia
Monday, December 29 2008
18 reia::apply only works with modules, not class objects was updated in Reia
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 5:26 PM

    the second issue isn't major, i've found a workaround to pass arguments as a hash instead of tuple array

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 5:14 PM

    There's a more complex case:

    
    >> class A
    ..   def a(x)  
    ..     Local.puts(x.inspect())
    .. 
    => ~ok
    >> a=A.start()   
    => #<Object>
    >> reia::apply(a, ~a,...
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 3:34 PM

    adding

    
    apply({object, {Pid, _Module}}, Method, Arguments) ->
      reia_class:call(Pid, {Method, Arguments});
    

    to reia.erl helps to resolve this

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 3:23 PM
    
    module A
      def x
        'x'
    
    class B
      def y
        'y'
    
    
    >> reia::apply(~A, ~x, [])
    => "x"
    
    >> b=reia::apply(~B, ~start, [])
    => #<Object>
    >> reia::app...
17 to_string() broken was updated in Reia
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 3:42 PM

    seems that lazy flattening doesn't work properly

    
    >> (1/4).to_list()            
    => [[48,46,50,53,48,48,48,48]]
    >> (1/4).to_list().to_string()
    exception er...
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 2:47 PM

    in ire (and not only ire, but ire too):

    
    >> a=1.2
    exception error: bad argument
      in function  list_to_binary/1
         called as list_to_binary([{list,{[],"1...