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:
Torsten Ruger
2018-08-15 19:59:17 +03:00
parent 01752aab05
commit 1dabe0fda1
3 changed files with 23 additions and 13 deletions

View File

@ -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