search for: somedef

Displaying 2 results from an estimated 2 matches for "somedef".

2020 Jun 18
4
[RFC] A value-tracking LiveDebugValues implementation
...validated (i.e. clobbered), control flow joins are a simple matter of "Do the predecessors agree on the location?", and not much more work is needed. Switching to tracking variable values is more complicated. Following the original proposal, for this pseudo-MIR code sequence: $rax = somedef DBG_INSTR_REF reference-to-somedef $rbx = COPY killed $rax ; Variable location is $rax, then moves to $rbx We need to track that: a) $rax contains a value defined by the "somedef" instruction, b) The DBG_INSTR_REF needs a location for the value somedef defines. c) That val...
2009 Oct 24
5
BUG? $name inside a definition 'method signature' different to within a body ?
If I have something like this: ---------------------------------------- define bar($thing="/tmp/$name") { file { $thing: ensure => present } } class foo { somedef{ "bar": } } ---------------------------------------- puppet will try to create a file called ''/tmp/foo'' , not /tmp/bar. It seems like if I try to access $name inside the ''default arguments'' bit of a definition, it''s set to the enclosing class...