# Updating an old project to modern broadcasting

**URL:** <https://discourse.julialang.org/t/updating-an-old-project-to-modern-broadcasting/93843>\
**Category:** General Usage\
**Created:** [January 31, 2023, 11:45pm UTC](https://discourse.julialang.org/t/updating-an-old-project-to-modern-broadcasting/93843 "2023-01-31T23:45:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranshila](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kiranshila/32/25475_2.png) [@kiranshila](https://discourse.julialang.org/u/kiranshila)\
**Post date:** [January 31, 2023, 11:45pm UTC](https://discourse.julialang.org/t/updating-an-old-project-to-modern-broadcasting/93843/1 "2023-01-31T23:45:40Z")

</div>

I’ve been tasked with updating an old 0.6 project to modern Julia and am having a really hard time working with the new broadcasting interface. The old code defined

```julia
 Base.broadcast!(f, output::BroadcastTypes, args...) = # ...

```

But I haven’t been able to get a combination of the broadcast style etc to work as simply as this. Is there a way to recreate the same functionality as redefining `broadcast!` with the new interface?

For context, here is the bit of code I’m working on: [BPJSpec.jl/broadcasting.jl at master · kiranshila/BPJSpec.jl · GitHub](https://github.com/kiranshila/BPJSpec.jl/blob/master/src/block-matrices/broadcasting.jl)

Thanks!

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 31, 2023, 11:57pm UTC](https://discourse.julialang.org/t/updating-an-old-project-to-modern-broadcasting/93843/2 "2023-01-31T23:57:53Z")

</div>

I think you can just delete all this code and just define `getindex`/`setindex` and making `ProgressBar<:AbstractArray`

---

<div class="post-metadata">

**Author:** ![kiranshila](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kiranshila/32/25475_2.png) [@kiranshila](https://discourse.julialang.org/u/kiranshila)\
**Post date:** [February 1, 2023, 12:14am UTC](https://discourse.julialang.org/t/updating-an-old-project-to-modern-broadcasting/93843/3 "2023-02-01T00:14:33Z")

</div>

I tried that but ran into a lot of problems with how the fusion mucks with the remote calls
