finish the idea behind #8, conditionally creating variables
by using space? , the ? makes for conditional creation of the variable This is especially useful for constants (ie space)
This commit is contained in:
@ -64,8 +64,8 @@ module Mom
|
||||
# set the method into the message
|
||||
def build_message_data( builder )
|
||||
builder.build do
|
||||
space! << Parfait.object_space
|
||||
next_message! << space[:next_message]
|
||||
space? << Parfait.object_space
|
||||
next_message? << space[:next_message]
|
||||
|
||||
#FIXME in a multithreaded future this should be done using lock free compare and swap.
|
||||
next_message_reg! << next_message[:next_message]
|
||||
@ -75,14 +75,6 @@ module Mom
|
||||
next_message[:caller] << message
|
||||
next_message[:method] << callable
|
||||
|
||||
# type << callable[:arguments_type]
|
||||
# named_list << next_message[:arguments]
|
||||
# named_list[:type] << type
|
||||
#
|
||||
# type << callable[:frame_type]
|
||||
# named_list << next_message[:frame]
|
||||
# named_list[:type] << type
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user